Up until yesterday evening our web server was running PHP 5.2.4 and I upgraded to 5.3.5 by downloading the Windows installer which seemed to do a pretty good job of just replacing the current instance of PHP with minimal configuration changes required.
Except when I tried using PHP’s command line interface, I got the following error:
This application has failed to start because php5ts.dll was not found. Re-installing the application may fix this problem.
The strange thing is, after clicking “OK” on this message, all PHP CLI commands are actually executed successfully, and running the command php -version returns 5.3.5 as expected.
I’m guessing somewhere there is a reference to the old PHP installation, the files for which are no longer on the server. I’ve checked the Windows path environment variable and the only references to PHP are as follows:
C:\\Program Files\\PHP\\;C:\\Program Files\\PHP\\ext;
C:\Program Files\PHP replaced D:\PHP as the installation directory when I upgraded, by the way.
I would really appreciate if anyone is able to help track down the cause of this error.
FWIW, I’m running Windows Server 2003.