From 0ed2895f04e6f0c5bbe3911d689c20e4b485938f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 14 Jul 2020 09:08:40 +0100 Subject: [PATCH] Make sure mod_php is disabled when we're using FPM --- cookbooks/php/recipes/apache.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/php/recipes/apache.rb b/cookbooks/php/recipes/apache.rb index ead6a5f73..dc60248ba 100644 --- a/cookbooks/php/recipes/apache.rb +++ b/cookbooks/php/recipes/apache.rb @@ -23,6 +23,10 @@ include_recipe "php::fpm" apache_module "proxy" apache_module "proxy_fcgi" +apache_module "php#{node[:php][:version]}" do + action :disable +end + apache_conf "php#{node[:php][:version]}-fpm" do action :enable end -- 2.39.5