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:

[PHP_OCI8]
extension=php_oci8.dll

[PHP_PDO_OCI]
extension=php_pdo_oci.dll
[PHP_PDO_OCI8]
extension=php_pdo_oci8.dll

[PHP_PDO_SQLITE]
extension=php_pdo_sqlite.dll
[PHP_PDO_SQLITE_EXTERNAL]
extension=php_pdo_sqlite_external.dll

[PHP_PSPELL]
extension=php_pspell.dll

[PHP_SYBASE_CT]
extension=php_sybase_ct.dll

Hope this helps everyone!

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

Comments are closed

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