AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  AH00534: httpd: Configuration error: No MPM loaded

    Posted Wed December 15, 2021 03:46 PM
    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
    ------------------------------


  • 2.  RE: AH00534: httpd: Configuration error: No MPM loaded

    Posted Thu December 16, 2021 07:55 AM
    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
    ------------------------------



  • 3.  RE: AH00534: httpd: Configuration error: No MPM loaded

    Posted Thu December 16, 2021 01:08 PM
    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
    ------------------------------



  • 4.  RE: AH00534: httpd: Configuration error: No MPM loaded

    Posted Thu January 06, 2022 09:55 AM
    Can you share the output of "httpd -V" ?

    ------------------------------
    RESHMA KUMAR
    ------------------------------



  • 5.  RE: AH00534: httpd: Configuration error: No MPM loaded

    Posted Thu January 06, 2022 10:02 AM
    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
    ------------------------------



  • 6.  RE: AH00534: httpd: Configuration error: No MPM loaded

    Posted Mon January 10, 2022 03:26 AM
    Please share the output of "grep mpm /opt/freeware/etc/httpd/conf/httpd.conf"

    ------------------------------
    RESHMA KUMAR
    ------------------------------



  • 7.  RE: AH00534: httpd: Configuration error: No MPM loaded

    Posted Mon January 10, 2022 09:46 AM
    root:/opt/freeware/etc/httpd/conf:] grep mpm /opt/freeware/etc/httpd/conf/GBRS_httpd.conf
    LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
    #LoadModule mpm_worker_module /opt/freeware/lib/httpd/modules/mod_mpm_worker.so
    <IfModule !mpm_prefork_module>
    <IfModule mpm_prefork_module>
    #Include conf/extra/httpd-mpm.conf

    ------------------------------
    Alwin Alex
    ------------------------------



  • 8.  RE: AH00534: httpd: Configuration error: No MPM loaded

    Posted Tue January 11, 2022 05:00 AM
    are GBRS_httpd.conf and httpd.conf the same?

    ------------------------------
    RESHMA KUMAR
    ------------------------------