FS#58930 - [php] Compile PHP threadsafe, required for http2 in Apache
Attached to Project:
Arch Linux
Opened by rainer (raneon) - Friday, 08 June 2018, 14:36 GMT
Last edited by Jan de Groot (JGC) - Saturday, 09 June 2018, 09:24 GMT
Opened by rainer (raneon) - Friday, 08 June 2018, 14:36 GMT
Last edited by Jan de Groot (JGC) - Saturday, 09 June 2018, 09:24 GMT
|
Details
Description: If I want to enable MPM event in Apache httpd,
I get the following error message "Apache is running a
threaded MPM, but your PHP Module is not compiled to be
threadsafe. You need to recompile PHP." The wiki even
mentions this error message and it recommends to use MPM
prefork instead. This works for starting httpd, but then
http2 doesn't work anymore, as support has been removed in
MPM prefork with one of the last Apache releases. So there
seems no way back and forth, if http2 is required.
Additional info: * Apache 2.4.33 * PHP 7.2.6 * Enable MPM event instead of MPM prefork in httpd.conf Steps to reproduce: 1. Enable MPM event 2. Restart httpd |
This task depends upon
We've seen multiple requests for this, we will still not implement it. Using php-fpm and mod_proxy_fcgi is recommended instead.