Resolved PHP-CGI.exe terminated unexpectedly in Windows Server 2008 R2 and IIS 7.5

by Kev Ritchie 10. October 2011 13:27

I just installed PHP 5.2.17 on our new web server running Windows Server 2008 R2 64bit and IIS 7.5 and created a phpinfo.php file in the wwwroot folder to test that PHP had installed correctly.

However, on running the file, I was hit in the face with this nasty error: “C:\Program Files (x86)\PHP\php-cgi.exe terminated unexpectedly”.

After spending more than an hour trying to figure this out, I recall that I encountered this issue before on our previous web server; yes, making notes on previous gotchas is a must, there’s only so much information that can fit in this forgetful head.  So this will serve as a reminder to myself as well as help anyone else that comes across this error.

In the php.ini file make sure that you comment out the following sections to get past this error:






Hope this helps everyone!

Note to self:  Remember that you wrote this post! Smile

Comments are closed

Powered by BlogEngine.NET
Theme by Mads Kristensen | Modified by Mooglegiant