]> git.openstreetmap.org Git - chef.git/commitdiff
Make sure we use prefork with mod_php
authorTom Hughes <tom@compton.nu>
Mon, 18 May 2020 14:47:48 +0000 (15:47 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 18 May 2020 14:47:48 +0000 (15:47 +0100)
cookbooks/dmca/attributes/default.rb [new file with mode: 0644]
cookbooks/donate/attributes/default.rb
cookbooks/forum/attributes/default.rb
cookbooks/mediawiki/attributes/default.rb
cookbooks/php/attributes/default.rb
cookbooks/php/recipes/apache.rb
cookbooks/piwik/attributes/default.rb
cookbooks/wordpress/attributes/default.rb

diff --git a/cookbooks/dmca/attributes/default.rb b/cookbooks/dmca/attributes/default.rb
new file mode 100644 (file)
index 0000000..56bdf21
--- /dev/null
@@ -0,0 +1,2 @@
+# Use prefork as PHP is to dumb for anything else
+override[:apache][:mpm] = "prefork"
index c6c3785d6db21f8446fdc2f5db9c975ea1ba56a2..b41666c72f84b5c02b9dadc247d936c0a5dbd8e8 100644 (file)
@@ -1,2 +1,5 @@
 # Enable the "donate" role
 default[:accounts][:users][:donate][:status] = :role
+
+# Use prefork as PHP is to dumb for anything else
+override[:apache][:mpm] = "prefork"
index 9f4114f8099ff0627294de623cbb41dfd54ff8ab..d6beb41d210351e01eeee8a5669d245d5e1cd9d7 100644 (file)
@@ -1,2 +1,5 @@
 # Enable the "forum" role
 default[:accounts][:users][:forum][:status] = :role
+
+# Use prefork as PHP is to dumb for anything else
+override[:apache][:mpm] = "prefork"
index 221a4eb9a3fb0d65a0c57f202b67cf4f4a55af44..a7eab32916e00ab7c96c7f064edf7615451e376b 100644 (file)
@@ -4,6 +4,9 @@ default[:apt][:sources] = node[:apt][:sources] | ["mediawiki"]
 # Default to enabling the "wiki" role
 default[:accounts][:users][:wiki][:status] = :role
 
+# Use prefork as PHP is to dumb for anything else
+override[:apache][:mpm] = "prefork"
+
 # Set mediawiki defaults
 default[:mediawiki][:user] = "wiki"
 default[:mediawiki][:group] = "wiki"
index 0ca636813b10d67d962662ce0b06f1b688882683..d1bd6680afd0ce9ab7c848f068e88dbad314cda5 100644 (file)
@@ -3,3 +3,5 @@ default[:php][:version] = if node[:lsb][:release].to_f < 20.04
                           else
                             "7.4"
                           end
+
+override[:apache][:mpm] = "prefork"
index 62cf24d669d2021179df602490517a8c737c2c80..7add783839f734761327fbff81e4feba11e8cb31 100644 (file)
@@ -17,8 +17,6 @@
 # limitations under the License.
 #
 
-node.override[:apache][:mpm] = "prefork"
-
 include_recipe "php"
 include_recipe "apache"
 
index e8366f229a03a15a888dd6b5a34126010a2d7679..9115878d1634ed3cffc21bba2bbe496a95c8aef9 100644 (file)
@@ -11,3 +11,5 @@ default[:piwik][:plugins] = %w[
   VisitFrequency VisitorInterest VisitsSummary VisitTime WebsiteMeasurable
   Widgetize
 ]
+
+override[:apache][:mpm] = "prefork"
index 9233459dcf346fb45148cb1829a9c09c5316ac28..856c9969667d93f2d2d3375c21d1e79366dacef0 100644 (file)
@@ -1,6 +1,9 @@
 # Enable the "wordpress" role
 default[:accounts][:users][:wordpress][:status] = :role
 
+# Use prefork as PHP is to dumb for anything else
+override[:apache][:mpm] = "prefork"
+
 # Set wordpress defaults
 default[:wordpress][:user] = "wordpress"
 default[:wordpress][:group] = "wordpress"