From 075747b74dc46148774f470bb00afa2e853c9508 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 12 Jul 2020 18:21:49 +0000 Subject: [PATCH] Only force the prefork mpm when mod_php is used --- cookbooks/php/attributes/default.rb | 2 -- cookbooks/php/recipes/apache.rb | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/php/attributes/default.rb b/cookbooks/php/attributes/default.rb index d1bd6680a..0ca636813 100644 --- a/cookbooks/php/attributes/default.rb +++ b/cookbooks/php/attributes/default.rb @@ -3,5 +3,3 @@ default[:php][:version] = if node[:lsb][:release].to_f < 20.04 else "7.4" end - -override[:apache][:mpm] = "prefork" diff --git a/cookbooks/php/recipes/apache.rb b/cookbooks/php/recipes/apache.rb index 7add78383..62cf24d66 100644 --- a/cookbooks/php/recipes/apache.rb +++ b/cookbooks/php/recipes/apache.rb @@ -17,6 +17,8 @@ # limitations under the License. # +node.override[:apache][:mpm] = "prefork" + include_recipe "php" include_recipe "apache" -- 2.39.5