Why would I get a 500 Internal Server Error? - IIS7 - FastCgiModule with PHP


I am getting a "500 - Internal Server Error" from the outside, the local connection gives me the 500 error as well as long with some more debugging information. The problem seems to be with FastCgiModule:

HTTP Error 500.0 - Internal Server Error
An unknown FastCGI error occured

Module  FastCgiModule
Notification    ExecuteRequestHandler
Handler PHP_via_FastCGI
Error Code  0x80070005

I ran the command to test the connection by force running cgi:

"C:\Program Files (x86)\PHP\php-cgi.exe" <path to website>

That did output the PHP/HTML code, not the 500 error. I believe the problem has to lie with the IIS. The server was up and running fine on Friday and no changes were made that I am aware of. A restart of the server changed nothing, still displays the error.

Hope I provided this to the correct website/forum. Does anybody know why I would be getting this error?

EDIT: Added in 500 error and "Unknown FastCGI error occured"

asked on Server Fault Apr 21, 2012 by Fleppar • edited Apr 21, 2012 by Fleppar

3 Answers


The 500 error may be caused because the user running C:\Program Files (x86)\PHP\php-cgi.exe doesn't have proper permissions on the directory containing your PHP files.

  1. Check the service manager to see which user is running this process.
  2. Check the security ACL for the PHP directory and files.
  3. Ensure that the user in (1.) has read/execute and list directory permissions and propagate these to all files.
answered on Server Fault Apr 21, 2012 by leftcase

I had an identical error message and found out the problem was a missing dll, msvcr71.dll. I found a copy of this dll under Mysql and copied it to

C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\ directory, and also, just in case to C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\etc directory.

answered on Server Fault Feb 3, 2013 by Al Vigil • edited Feb 3, 2013 by Marko

Control Panel >> All Control Panel Items >> Administrative Tools >> Internet Information Services (IIS) Manager >>

under 'Connections' select 'Sites', then select 'Default Web Site' (all at 1st column) select 'Handler Mappings' (2nd column), double-click, a list woth Handler Mappings shall open, then select the service that is not running (exemple c:\php5\php-cgi.exe via his nickname) and make that becomes 'Inherited' (as 'Entry Type')

Shall work-


answered on Server Fault Sep 24, 2015 by catalan.Friqui

User contributions licensed under CC BY-SA 3.0