IIS 7 and Above
IIS 7 PHP Error: Failed to open stream: Permission denied
Last post May 09, 2010 11:22 PM by don.raman
May 08, 2010 11:16 PM|Bittersweet|LINK
Windows 2008 Server
May 09, 2010 10:15 AM|don.raman|LINK
The error means that php-cgi.exe doesn't have appropriate permission. Please use process monitor and see which user is getting access denied for this process and give appropriate permission.
May 09, 2010 01:17 PM|jastu|LINK
I have the same problem - my login is the user.... should php-cgi.exe run on IUSR ?
May 09, 2010 01:25 PM|don.raman|LINK
See it all depends on credentials under which application pool is running. That credential should have proper permission.
May 09, 2010 01:36 PM|jastu|LINK
Sorry, if I understand you wrong - my English isn't well
Where can i check those credentials ? I have only DefaultAppPool, where Identity is NetworkService (HTTP_AUTHORIZATION - NTLM)
May 09, 2010 11:22 PM|don.raman|LINK
Is your fastcgi.impersonate set to 1 in your php.ini file? Please use process monitor to see which user is getting access denied. Process monitor can be downloaded from
http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx. Look for ACCESS DENIED error for executable php-cgi.exe.