No MPM loaded
root:/home/root:] httpd -V
AH00534: httpd: Configuration error: No MPM loaded.
Server version: Apache/2.4.48 (Unix)
Server built: Aug 4 2021 08:13:30
Server's Module Magic Number: 20120211:105
Server loaded: APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture: 32-bit
Server MPM:
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/opt/freeware/etc/httpd"
-D SUEXEC_BIN="/opt/freeware/sbin/suexec"
-D DEFAULT_PIDLOG="/var/logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
------------------------------
Alwin Alex
------------------------------
Original Message:
Sent: Thu January 06, 2022 09:55 AM
From: RESHMA KUMAR
Subject: AH00534: httpd: Configuration error: No MPM loaded
Can you share the output of "httpd -V" ?
------------------------------
RESHMA KUMAR
Original Message:
Sent: Thu December 16, 2021 01:07 PM
From: Alwin Alex
Subject: AH00534: httpd: Configuration error: No MPM loaded
mpm_prefork_module is already enabled
LoadModule mpm_prefork_module /opt/freeware/lib/httpd/modules/mod_mpm_prefork.so
#LoadModule mpm_worker_module /opt/freeware/lib/httpd/modules/mod_mpm_worker.so
LoadModule authn_file_module /opt/freeware/lib/httpd/modules/mod_authn_file.so
/home/root:] apachectl -M | grep prefork
AH00534: httpd: Configuration error: No MPM loaded.
httpd -V | grep MPM
AH00534: httpd: Configuration error: No MPM loaded.
Server MPM:
------------------------------
Alwin Alex
Original Message:
Sent: Thu December 16, 2021 07:55 AM
From: RESHMA KUMAR
Subject: AH00534: httpd: Configuration error: No MPM loaded
Post installation script of httpd modifies httpd.conf file to enable mpm_prefork_module and disable mpm_worker_module.
To fix the error, you can manually enable mpm_prefork_module instead of mpm_worker_module. Php doesn't work with mpm_worker_module.
------------------------------
RESHMA KUMAR
Original Message:
Sent: Wed December 15, 2021 02:06 PM
From: Alwin Alex
Subject: AH00534: httpd: Configuration error: No MPM loaded
Hello
I Recently upgrade Apache from version 2.2.31 to 2.4.48 and php 5.0 to PHP 7.0.x., And it was started fine. But when try to restart Apache I got error message
AH00534: httpd: Configuration error: No MPM loaded
when I load Module LoadModule mpm_worker_module /opt/freeware/lib/httpd/modules/mod_mpm_worker.so I got error
Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. AH00013: Pre-configuration failed
What is the solution to fix the issue?
------------------------------
Alwin Alex
------------------------------