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!

2 comments:

  1. Thank you!

    Im searching this for a long time.

    []s

    ReplyDelete
  2. Anonymous7:46 am

    Sorry, I want this too. php4apache2.dll for php4.4.0 and apache2.2
    :( unfortunately above link you provided doesn't have this dll. Any help to get it?

    ReplyDelete

Comments are very welcome unless you're a spammer, in which case you should probably kill yourself.

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