Browse code

Merge "Switch Centos/Fedora to Apache woker MPM"

Jenkins authored on 2017/08/11 00:58:51
Showing 1 changed files
... ...
@@ -132,6 +132,10 @@ function install_apache_wsgi {
132 132
     elif is_fedora; then
133 133
         sudo rm -f /etc/httpd/conf.d/000-*
134 134
         install_package httpd mod_wsgi
135
+        # For consistency with Ubuntu, switch to the worker mpm, as
136
+        # the default is prefork
137
+        sudo sed -i '/mod_mpm_prefork.so/s/^/#/g' /etc/httpd/conf.modules.d/00-mpm.conf
138
+        sudo sed -i '/mod_mpm_worker.so/s/^#//g' /etc/httpd/conf.modules.d/00-mpm.conf
135 139
     elif is_suse; then
136 140
         install_package apache2 apache2-mod_wsgi
137 141
     else