4 Nov 2006

PHP4.4 and Apache2.2 on Windows XP

Had loads of fun trying to set PHP 4.4 and Apache 2.2.3 up on my XP machine. After making the required PHP mods to the httpd.conf file, Apache would not restart with an "Operation Has Failed" dialogue. Running httpd.exe -t from the command line gave me the following:

httpd: Syntax error on line 115 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/PHP/php4apache2.dll into server: The specified module could not be found.

But the DLL was definitely there!

Only after lots of fruitless searching did I notice that the PHP install notes only mention Apache 2.0, not 2.2. So I did a specific search and found the work of the dudes at ApacheLounge: http://www.apachelounge.com/download/

Their version of the DLL compiled for 2.2.x works a treat. Huzzah!

If I helped you out today, you can buy me a beer below. Cheers!