This cookbook provides additional standard primitives to manage PHP and PHP-FPM deployments.
Mainly on Ubuntu systems, these resources will allow us to manage configuration files for different PHP SAPI modules (cli vs cgi vs fpm), will allow you to define configuration file priorities so as to remain consistent and not clash with Ubuntu provided files, and will allow you to manage PHP-FPM which is how you roll.
- Debina, Ubuntu
node[:php][:packages]
= PHP packages to install (php::packages)node[:php][:mysql][:package]
= Mysql PHP package to instal (php::module_mysql)node[:php][:pear_packages]
= PHP Pear packages to install (php_wrapper::default)node[:php][:directives]
= Default php.ini directives (php_wrapper::default)node[:php][:directives][:custom]
= Additional php.ini directivesnode[:php][:directives][:module]
= Additional modular php.ini directivesnode[:php][:fpm][:pools]
= PHP FPM pools to install
This cookbook includes Resources for managing the following topics. Additional documentation may be found directly in each resource definition file.
- PHP Composer installation
- PHP Composer execution
- PHP-FPM Pool deployments
- PHP modular configuration files
Include the php
upstream cookbook, installs packages and deploys configuration files.
Installs a global composer
binary installation
Installs and configures the php-fpm
package and pools.
Note: The php_pool
resource automatically sets the status page and ping path to be /_php/status and /_php/ping respectively. It is left up to you to secure the /_php/ uri path so that it may only be reached by your monitoring system.