]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/recipes/fpm.rb
Make php::fpm enable FPM support in apache
[chef.git] / cookbooks / php / recipes / fpm.rb
index 33baba2abf260f3a823d479a1f5fec7e14d1ce2f..9932bcdcfd1acd808724ce8f45f8156a9073b2b1 100644 (file)
@@ -17,6 +17,7 @@
 # limitations under the License.
 #
 
+include_recipe "apache"
 include_recipe "php"
 
 package "php-fpm"
@@ -24,3 +25,10 @@ package "php-fpm"
 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