Edit report at https://bugs.php.net/bug.php?id=62267&edit=1
ID: 62267 Comment by: iomranic at gmail dot com Reported by: neweracracker at gmail dot com Summary: Apache 2.4 Status: Open Type: Feature/Change Request Package: Apache2 related Operating System: Windows PHP Version: 5.3Git-2012-06-08 (snap) Block user comment: N Private report: N New Comment: Well, I've tested my patch on all of the following PHP versions with successful positive results: 5.3.10/5.3.11/5.3.12/5.3.13/5.3.14/5.3.15 5.4.0/5.4.1/5.4.2/5.4.3/5.4.4/5.4.5 What's solved my issue was just one simple modification in your original patch: Replace ||'sapi\\apache2handler');|| With ||'sapi\\apache2_4handler');|| Other modifications in my patch isn't mandatory. Compiled & running successfully without any issues till now. And to be honest, I didn't use Apache's IPv6 features & that's why I didn't care whether or not it's compiled & running or not. P.S. If you can, please delete this patch (posted by mistake): php-5.4-apache-2.4 (last revision 2012-08-05 17:53 UTC) Previous Comments: ------------------------------------------------------------------------ [2012-08-05 19:59:51] neweracracker at gmail dot com Hello, I had to include php_network.h in my patch because SAPIs for IPv6 enabled apache 2.4 wouldn't build without it. I didn't tested PHP 5.4 yet regarding this. Only PHP 5.3. ------------------------------------------------------------------------ [2012-08-05 18:04:35] iomranic at gmail dot com This modified patch applicable for both branches 5.4 & 5.3 ------------------------------------------------------------------------ [2012-08-05 17:51:14] iomranic at gmail dot com Your patch allowed me to compile php5apache2_4.dll successfully, but Apache service failed to start with the following error(s) in event log: ------------------------------------------------------------------------ >>> httpd.exe: Syntax error on line 175 of /path/to/httpd.conf: Module >>> "sapi\\apache2handler\\mod_php5.c" is not compatible with this version. ------------------------------------------------------------------------ >>> of Apache (found 20110619, need 20120211). Please contact the vendor for >>> the correct version. ------------------------------------------------------------------------ After reviewing PHP's source code, I've reached a good solution which worked for me, compilation succeeded, and launching Apache 2.4 with PHP 5.4 module (Apache 2.4 Handler) succeeded as well. Solution attached as a patch file below. Note that I've removed Apache 2.3 support, and added both "Apache 2.4 Filter" & "Apache 2.4 Handler" support. I've removed unwanted "php_network.c" inclusion (that "neweracracker" added in his patch) from the patch as well, since I didn't see any need for it. ------------------------------------------------------------------------ [2012-06-08 18:09:08] neweracracker at gmail dot com Description: ------------ I've implemented a patch for PHP 5.3 that enables Apache 2.4 support ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62267&edit=1