Get php 5.4 installed on CentOS, RHEL and Fefora.
- yum cookbook
- yum-epel cookbook
Using a recpie
include_recipe "php54"Using a node json file
{
"runlist": ["recipe[php54]"]
}The php_package definition uses the package definition but prefixes the package name with php54-php-.
php_package "cli" do
action :install
endThe php_fpm_pool definition from the php-fpm cookbook as been ripped off here with adjustments made to work with the php54 packages
php_fpm_pool node['lemp']['app_name'] do
listen node['lemp']['php_socket']
user node['nginx']['user']
group node['nginx']['user']
enable :true
endAuthor:: Daniel Chalk (daniel-chalk@hotmail.co.uk)