All of my .html pages give a 500 error. All .php files work fine


I just stepped over from IIS 5 to IIS 8.5. I had trouble installing ISAPI Filters and FastCGI but I managed to get almost everything working. The only problem I'm facing now is that all of .html pages will give me a 500 error. Underneath here is the error:

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

Error Details:

An error occurred processing config file. Error Number: 2 (0x80070002). Error Description: The system cannot find the file specified.

I have static content installed.

Even if I have only a head and body tag within here "Hello World" it'll give me this error. All PHP and JS files are working correctly.

I hope there are some of you guys with ideas about what I can do. I'm desperate to finish this..

Thanks a lot in advance

asked on Server Fault Jul 23, 2015 by JKL • edited Jan 20, 2019 by JKL

1 Answer


I managed to fix it thanks to this website

Here is what I did:

  1. Delegate Handler Mappings In IIS manager, select the machine name from the left, click on Feature Delegation under Management in the middle section of the page. Select Handler Mappings from the list and select Read/Write from the right hand section of the page.
  2. Create new Handler Mapping In IIS manager, click on the web site name from the left hand side (probably called Default Web Site with a globe image next to it). Go into Handler Mappings. Add a Module Mapping (link on the right). The details should be the same as with the mapping for the .php extension, but it will be something like this:

    Request path: *.html Module: FastCgiModule

    Executable: C:\Program Files (x86)\PHP\php-cgi.exe

    Name: html

    In Request Restrictions box for this handler, have the following settings:

    Mapping: unticked

    Verbs: all verbs

    Access: none

answered on Server Fault Jul 27, 2015 by JKL

User contributions licensed under CC BY-SA 3.0