Fix – PHP FastCGI Error Number 5 (0x80070005)


As you are installing PHP with Fastcgi in your Windows server, you may come along with Fastcgi Error Number 5 (0x80070005). Detail error as below:-



FastCGI Error

The FastCGI Handler was unable to process the request.
Error Details:

Error Number: 5 (0x80070005).
Error Description: Access denied.
HTTP Error 500 – Server Error.
Internet Information Services (IIS)



This is due the IIS Guest Account does not has the permission to read php-cgi.exe file. The solution would be granting the permission to that particular file by following below steps:-

1. Go to your php installation path, usually at C:/php

2. Right click on php-cgi.exe and choose “Properties”

3. Go to Security tab

4. Click “Add…” then “Advanced…”

5. Click on “Find Now”

6. Search for the Internet Guest Account (IUSR_<computername>), highlight it and click OK twice.

7. Make sure “Read & Execute” and “Read” under Allow column are checked.

8. Click OK.