WAMP server won’t run with PHP 5.3.4 but will with PHP 5.2.11

PHPwamp

I have a 64bit Windows 7 Professional machine. I'm running WampServer Version 2.1 with Apache 2.2.4. It was installed on a clean machine.

I'm using the default ini/conf files as they come. Wamp is installed in C:\wamp\, with php5.2 at C:\wamp\bin\php\php5.2.11 and php5.3 at C:\wamp\bin\php\php5.3.4. Both folders have the same permissions. When I run WAMP with 5.2.11 picked, it starts fine. When I run it with 5.3.4 picked, there are no errors in the Apache or PHP error logs, but I get

The Apache service named  reported the following error:
httpd.exe: Syntax error on line 115 of C:/wamp/bin/apache/apache2.2.4/conf/httpd.conf:
Cannot load C:/wamp/bin/php/php5.3.4/php5apache2_2.dll into server:
The Apache service named is not a valid Win32 application.

in my system application error logs. 5.2.11 calls C:/wamp/bin/php/php5.2.11/php5apache2_2.dll and that doesn't throw an error. What am I doing wrong?


ETA: copies of the DLLs should be here:

PHP 5.2.11 – http://www.sendspace.com/file/bx5c5x

PHP 5.3.4 – http://www.sendspace.com/file/80y5bk

Best Answer

A DLL normally cannot be loaded because it refers to modules that are missing on your computer.

The best way to find out which is to download the Dependency Walker and see what it says about it. It will indicate which DLLs are missing. The reason may be that they were not installed, or that the PATH system environment variable is missing this path.

If the missing DLL is msvcr90.dll, then the missing package is VC++ 2008 redistributable. Google for the right version (x86 or x64) and download it from Microsoft (only).

Related Question