FS#39214 - [apache] [php-apache] [php] broken in 2.4 (MPM?)
Attached to Project:
Arch Linux
Opened by Pierre Durand (Pierrre) - Friday, 07 March 2014, 09:46 GMT
Last edited by Jan de Groot (JGC) - Friday, 07 March 2014, 11:06 GMT
Opened by Pierre Durand (Pierrre) - Friday, 07 March 2014, 09:46 GMT
Last edited by Jan de Groot (JGC) - Friday, 07 March 2014, 11:06 GMT
|
Details
Description:
apache doesn't start with php Additional info: * package version(s): extra/apache 2.4.7-1, extra/php-apache 5.5.10-1, extra/php 5.5.10-1 Steps to reproduce: - install apache (2.4), php-apache, and php - add "LoadModule php5_module modules/libphp5.so" in "/etc/httpd/conf/httpd.conf" - systemctl start httpd error: Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. |
This task depends upon
This problem is not fixed: no solution has been found.
Or change usage from mod_php to php-cgi with php-fpm or mod_fcgid.
Was prefork mpm used in apache 2.2?
AFAIK the new default is to use mpm_event in 2.4. This MPM will not work with mod_php if not compiled with ZTS enabled, but even if you compile with ZTS enabled, it's still not guaranteed to be threadsafe because of 3rd party modules loaded into PHP.
If you want to use mod_php, switch to prefork mpm. If you want to use worker or event, switch to mod_fastcgi with php-fpm or mod_fcgid if you want apache to manage the processes.