# limitations under the License.
#
+include_recipe "apache"
include_recipe "php"
package "php-fpm"
+template "/etc/php/#{node[:php][:version]}/fpm/conf.d/99-chef.ini" do
+ source "php-fpm.ini.erb"
+ owner "root"
+ group "root"
+ mode 0o644
+end
+
service "php#{node[:php][:version]}-fpm" do
action [:enable, :start]
end
+
+apache_module "proxy"
+apache_module "proxy_fcgi"
+
+apache_conf "php#{node[:php][:version]}-fpm" do
+ action :enable
+end