{"id":13578750,"url":"https://github.com/geerlingguy/ansible-role-apache-php-fpm","last_synced_at":"2025-04-13T06:40:46.329Z","repository":{"id":3460756,"uuid":"49620428","full_name":"geerlingguy/ansible-role-apache-php-fpm","owner":"geerlingguy","description":"Apache FastCGI support for PHP-FPM","archived":false,"fork":false,"pushed_at":"2025-01-31T04:37:24.000Z","size":48,"stargazers_count":42,"open_issues_count":0,"forks_count":32,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-26T23:07:22.128Z","etag":null,"topics":["ansible","apache","php","php-fpm","role","setup"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/geerlingguy/apache-php-fpm/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2016-01-14T03:34:11.000Z","updated_at":"2025-01-31T04:37:27.000Z","dependencies_parsed_at":"2024-01-16T20:28:30.050Z","dependency_job_id":"cccc56b0-9178-43d8-8301-5b0c2faececc","html_url":"https://github.com/geerlingguy/ansible-role-apache-php-fpm","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-apache-php-fpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-apache-php-fpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-apache-php-fpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-apache-php-fpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/ansible-role-apache-php-fpm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675434,"owners_count":21143763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","apache","php","php-fpm","role","setup"],"created_at":"2024-08-01T15:01:33.436Z","updated_at":"2025-04-13T06:40:46.310Z","avatar_url":"https://github.com/geerlingguy.png","language":null,"funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":["Others"],"sub_categories":[],"readme":"# Ansible Role: Apache PHP-FPM\n\n[![CI](https://github.com/geerlingguy/ansible-role-apache-php-fpm/actions/workflows/ci.yml/badge.svg)](https://github.com/geerlingguy/ansible-role-apache-php-fpm/actions/workflows/ci.yml)\n\nAn Ansible Role that configures Apache for PHP-FPM usage on RHEL/CentOS and Debian/Ubuntu.\n\n## Requirements\n\nThis role is dependent upon `geerlingguy.apache`, and also requires you have PHP running with PHP-FPM somewhere on the server or elsewhere (I usually configure PHP with the `geerlingguy.php` role).\n\nWhen configuring your Apache virtual hosts, you can add the following line to any vhost definition to enable passthrough to PHP-FPM:\n\n    # If using a TCP port:\n    ProxyPassMatch ^/(.*\\.php(/.*)?)$ \"fcgi://127.0.0.1:9000/var/www/example\"\n    \n    # If using a Unix socket:\n    ProxyPassMatch ^/(.*\\.php(/.*)?)$ \"unix:/var/run/php5-fpm.sock|fcgi://localhost/var/www/example\"\n\nFor a full usage example with the `geerlingguy.apache` role, see the Example Playbook later in this README.\n\n### RedHat 6 and 7\n\nRedHat/CentOS 7 automatically installs and enables mod_proxy_fcgi by default.\n\nRedHat/CentOS 6 installs Apache 2.2, and is much harder to get configured with FastCGI, but here are two guides in case you need to support this use case:\n\n  - [Apache 2.2 + mod_fastcgi](http://stackoverflow.com/a/21409702/100134)\n  - [Apache 2.4 + mod_proxy_fcgi](http://unix.stackexchange.com/a/138903/16194)\n\n## Role Variables\n\nNone.\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n    - hosts: webservers\n    \n      vars:\n        php_enable_php_fpm: true\n        apache_vhosts:\n          - servername: \"www.example.com\"\n            documentroot: \"/var/www/example\"\n            extra_parameters: |\n                  ProxyPassMatch ^/(.*\\.php(/.*)?)$ \"fcgi://127.0.0.1:9000/var/www/example\"\n    \n      roles:\n        - geerlingguy.apache\n        - geerlingguy.php\n        - geerlingguy.apache-php-fpm\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2016 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](http://www.ansiblefordevops.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-apache-php-fpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fansible-role-apache-php-fpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-apache-php-fpm/lists"}