Apache start failing after apache config modifications, showing syntax error, cannot load php5apache2_2.dll into server

Posted by Sandeepan Nath on Server Fault See other posts from Server Fault or by Sandeepan Nath
Published on 2011-07-01T07:27:12Z Indexed on 2011/07/01 8:24 UTC
Read the original article Hit count: 417

I am stuck again with apache setup guys. I am working on a Windows 7 system. I copied the working php5 installation directory from teammates, copied the necessary .dll files from inside php5 installation folder (like they were in the working setup of teammates) to my windows/system32/. Apache server started successfully with the default apache config file. I was able to access localhost in browser. But php code was not parsing. I noticed no such line like the following in the apache config file:-

# PHP5 module
LoadModule php5_module D:/php5/php5apache2_2.dll

If I add this line, apache server start fails. Running test configuration gives the following error -

httpd.exe: Syntax error on line 60 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load D:/php5/php5apache2_2.dll into server: The specified procedure could not be found.  

But the dll file is there in the specified location and I have given all permissions to the current system user to the php5 installation directory. The same line also appears in the apache error log, though I am not sure when exactly logs are written to the log file. I am confused if log entries are not made if I have opened the log file for reading? lol ... because I could not observe a pattern in when entries are made. I saw some log entries being made, some not.

Oh, why is apache setup such a headache always????

© Server Fault or respective owner

Related posts about windows-7

Related posts about apache2.2