The php
cookbook installs and configures PHP and the PEAR package management system. Also includes resources for managing PEAR (and PECL) packages, PECL channels, and PHP-FPM pools.
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.
- Ubuntu 18.04 / 20.04 / 22.04
- Debian 10 / 11
- CentOS 7+ (incl. Alma & Rocky)
- Amazon Linux 2023
- Chef 15.3+
This cookbook includes resources for managing:
Simply use the php_install
resource wherever you would like PHP installed from a package. By default, it will install from the platform's package manager (see libraries/helpers.rb
to see the default packages list for each platoform).
Please see test/cookbooks/test/recipes/community.rb
for an example of using the php_install
resource to install the desired version of PHP & its supporting packages from a community repository, and please refer to the documentation on these community repositories:
- RHEL/CentOS - Remi’s RPM repository
- Ubuntu - Ondřej Surý PPA
- Debian - Sury repo
This project exists thanks to all the people who contribute.
Thank you to all our backers!
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.