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
Expand all | Collapse all

apache php module: no threading support

  • 1.  apache php module: no threading support

    Posted Mon April 20, 2020 03:58 AM

    Originally posted by: ctremel


    hi,

     

    the php module is not threadsafe therefore no worker mpm in apache possible.  and about httpd, would be nice if you change the default to 64bit and cancel 32bit, this applies to all binaries/packages IMHO,  we have 2020 already.

     

    root@itsvpmo: /opt/freeware/etc/httpd/conf # /opt/freeware/sbin/apachectl -t
    [Mon Apr 20 09:36:09.150016 2020] [so:warn] [pid 2621618:tid 1] AH01574: module ssl_module is already loaded, skipping
    [Mon Apr 20 09:36:09.182515 2020] [php7:crit] [pid 2621618:tid 1] 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

     

     



  • 2.  Re: apache php module: no threading support

    Posted Mon April 20, 2020 05:27 AM

    Originally posted by: AyappanP


    We are providing php-fpm (separate rpm) which is the recommended way to use with apache threaded mpm module. 

    https://cwiki.apache.org/confluence/display/HTTPD/PHP

    You need to edit the httpd conf file accordingly to disable mod_php and enable php-fpm.

    For some packages, we are still keeping 32bit as the default since there are some risks involved particularly for packages like httpd which contains conf files. Since conf files won't get replaced when the package is updated, it will cause 64bit application to load conf file meant for 32bit. 

    We are currently working on a plan to make 64bit as the default for all the packages.