"More than one MPM loaded" error after updating Apache

dkzr

Verified User
Joined
Oct 17, 2013
Messages
98
Location
The Netherlands
I've just updated Apache using ./build update_versions to 2.4.10.
I'm using Custombuild Version: 2.0.0-RC7 (rev: 857)

Apache didn't load afterwards with an "More than one MPM loaded" error.

Checking /etc/httpd/conf/extra/httpd-phpmodules.conf, I found two LoadModule lines:

Code:
LoadModule mpm_event_module /usr/lib/apache/mod_mpm_event.so
LoadModule mpm_prefork_module /usr/lib/apache/mod_mpm_prefork.so

I've looked through the build script to see where the error might come from, but I'm not familiar enough with it to find the issue.
Going through it, the if/elseif/else loop around line 11353 in doApache2() could result in a duplicate LoadModule (when APACHE_MPM_OPT != 'auto' and COUNT > 0)

CB options:
Code:
#PHP settings.
php1_release=5.4
php2_release=5.5
php1_mode=php-fpm
php2_mode=php-fpm
htscanner=no
php_ini=no
php_timezone=Europe/Amsterdam
php_ini_type=production
ioncube=no
x-mail-header=yes
zend=no

#HTTP server. Possible values: apache, nginx
webserver=apache

#Apache settings
apache_ver=2.4
mod_ruid2=no
secure_htaccess=no
harden-symlinks-patch=yes
use_hostname_for_alias=auto

apache_mpm=auto
 
Thank you for the report. I've found the bug and fixed it. It should be uploaded to DA fileservers soon. For now a temporary fix is:
Code:
perl -pi -e 's|^LoadModule mpm_prefork_module|#LoadModule mpm_prefork_module|' /etc/httpd/conf/extra/httpd-phpmodules.conf
service httpd restart
 
Back
Top