Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7.5 PHP failure "The FastCGI process exited unexpectedly"

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.

like image 990
Vilid Avatar asked Aug 16 '12 17:08

Vilid


2 Answers

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.

like image 55
b01 Avatar answered Nov 06 '22 06:11

b01


Install the 32 bit of Visual C++ Redistributable for Visual Studio 2012 Update 4

NOT the 64 bit

like image 10
piris Avatar answered Nov 06 '22 08:11

piris