IIS 7.5 PHP failure "The FastCGI process exited unexpectedly"

Vilid picture Vilid · Aug 16, 2012 · Viewed 76.1k times · Source

I've been attempting to get PHP working with IIS 7.5 and have hit a bit of a roadblock. Whenever I try to load the page I get the following error:

"HTTP Error 500.0 - Internal Server Error C:\Program Files\PHP\php.exe - The FastCGI process exited unexpectedly"

Module FastCgiModule

Notification ExecuteRequestHandler

Handler PHP_via_FastCGI

Error Code 0x00000000

Requested URL *http://localhost:80/index.php

Physical Path C:\inetpub\wwwroot\index.php

Logon Method Anonymous

Logon User Anonymous

Failed Request Tracing Log Directory C:\inetpub\logs\FailedReqLogFiles

I've modified the PHP.ini file as required for use with IIS, and have also switched it to verbose mode. There isn't any log fiel in C:\inetpub\logs\FailedReqLogs, and none related to this error in the other log files generated.

I've tried the other fixes I've found here and elsewhere but nothing's been successful so far.

In some detail these were: re-checking PHP.ini Setting up fastCGI to work with PHP in IIS (configuring it to load the php.exe) Trying WinCache as the execution method.

Answer

b01 picture b01 · Sep 2, 2013

I had this problem when I upgraded PHP 5.4.14 to 5.5.3 (32-bit).

To fix it I had to install the Visual C++ Redistributable for Visual Studio 2012 Update 3

I found out that I needed this DLL by running php --version from the console when my web pages no longer loaded after the upgrade. Which then revealed that I needed the MSVCR110.dll, that comes with the 32-bit VS redistributable update from MS. Since I have optional updates turned off in Window Update, I did not get it automatically.

They also come in different flavors (32-bit, 64-bit, and ARM) 32-bit is what worked for me.