X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/075747b74dc46148774f470bb00afa2e853c9508..97aac1724da5fd406b0be6c892f43a94e846e9b8:/cookbooks/php/recipes/apache.rb?ds=sidebyside diff --git a/cookbooks/php/recipes/apache.rb b/cookbooks/php/recipes/apache.rb index 62cf24d66..dc60248ba 100644 --- a/cookbooks/php/recipes/apache.rb +++ b/cookbooks/php/recipes/apache.rb @@ -17,9 +17,16 @@ # limitations under the License. # -node.override[:apache][:mpm] = "prefork" - -include_recipe "php" include_recipe "apache" +include_recipe "php::fpm" + +apache_module "proxy" +apache_module "proxy_fcgi" + +apache_module "php#{node[:php][:version]}" do + action :disable +end -apache_module "php#{node[:php][:version]}" +apache_conf "php#{node[:php][:version]}-fpm" do + action :enable +end