IIS 5 & IIS 6
500 Server Error with PHP
Last post Jan 15, 2010 04:42 AM by don.raman
Apr 16, 2007 11:39 AM|blain57|LINK
After installing fastcgi tech preview for php i get the following error:
FastCGI Handler Extension
Error 0x80070005 occurred processing request.
Access is denied.
Ive checked folder permissions and they seem fine:
System account has full control on c:\php\
And iusr has read write permissions on the wwwroot folder.
It must be something easy to fix no?
Apr 16, 2007 12:40 PM|blain57|LINK
btw im on a VPS server
Apr 16, 2007 04:58 PM|rickjames|LINK
Check that your php.ini fastcgi.impersonate setting is what you want. Please could you post a procmon, from
Apr 16, 2007 05:19 PM|blain57|LINK
Unfortunately i tried running procmon and it doesnt. Unable to load driver. I think it has something
to do with me being in a vps system.
On the php.ini i found the fastcgi.impersonate setting and set it to 1 (it was commented), but still it displays the same error. The php.ini resides in the C:\PHP\ directory, and im guessing that, after i installed the fastcgi tech preview, thats the directory
the system checks to find the php.ini, correct?
Apr 16, 2007 05:28 PM|rickjames|LINK
Now we're going to have to do this the hard way.. :-). What version of Windows/IIS are you running? What version of PHP are you running? If IIS >= 6, have you changed the AppPool identity?
My first guess is that IIS cannot access php-cgi.exe. If you right-click on php-cgi.exe - properties - security - advanced - ... - effective permissions - insert AppPool identity. Does the AppPool identity have Read and Execute access?
Apr 16, 2007 05:38 PM|blain57|LINK
Ok, im on a windows 2003 server , hence iis 6 , i downloaded the latest php version 4.4.6 (i downloaded the Windows Binaries php files), it didnt come with a php-cgi.exe file, but i used the php.exe file instead.
Ive not made changes on the apppool identity (i wouldnt know where to do that).
On iis the site is running on the defaultapppool.
Checking the permissions on php.exe i cannot see in the effective permissions tab anything that has to do with the AppPool identity. :/
Thanx for taking the time for this
Apr 16, 2007 05:45 PM|blain57|LINK
I added full control permissions for IIS_WPG on the php.exe file and now the error has changed to:
Apr 16, 2007 05:49 PM|blain57|LINK
I now added full control on the whole php directory for IIS_WPG and the error changed to :
Its not funny anymore :/
Apr 16, 2007 05:49 PM|rickjames|LINK
You don't want to give IIS_WPG full control of the php directory permanently, but it is useful for debugging. This new error indicates php.exe exited before sending a response. Ensure fastcgi.impersonate is commented out (this feature is currently broken
with PHP4 and TP2). Can you run simple scripts from the command line? e.g. \php\php.exe \inetpub\wwwroot\hello.php
Apr 16, 2007 05:52 PM|blain57|LINK
Thank you! commenting out the fastcgi.impersonate from php.ini on c:\php\ did it.
everything runs smoothly now.
Thanx! I hope this helps others as well
Jan 14, 2010 04:33 PM|grizzzman|LINK
I am having the same issues and have done all of the above with out luck..... sure could also use a hand. Thansk
Jan 15, 2010 04:42 AM|don.raman|LINK
What is the exact 500 error you are getting? Can you do some troubleshooting using the blog at
http://blogs.iis.net/donraman/archive/2009/11/15/troubleshooting-php-installation-on-windows.aspx. Please paste output/observation of each command.
Also let me know what IS/IIS version you are.