Skip to content

lightspeedretail/chef-php-wrapper

 
 

Repository files navigation

php_wrapper

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.

Reqirements

Platforms

  • Debina, Ubuntu

Attributes

  • 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 directives
  • node[:php][:directives][:module] = Additional modular php.ini directives
  • node[:php][:fpm][:pools] = PHP FPM pools to install

Resources

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

Recipes

default

Include the php upstream cookbook, installs packages and deploys configuration files.

composer

Installs a global composer binary installation

php_fpm

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.

About

Chef cookbook that enhances the upstream php cookbook

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 73.5%
  • HTML 26.5%