Getting missing FastCGIModule error for executing php code inside IIS
<p>I'm trying to load an HTML file containing php script inside it. It is hosted in IIS 7.5 on Windows 7 x64. Here is the HTML file :</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;H1&gt;test&lt;/H1&gt;

&lt;?php
echo "My first PHP script!";
?&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I've hosted this page as a web application inside IIS. My web.config is as below:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;configuration&gt;
 &lt;system.webServer&gt;
        &lt;handlers&gt;
            &lt;add name="PHP53_via_FastCGI_HTML" path="*.html" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.3\php-cgi.exe" resourceType="File" requireAccess="Script" /&gt;
        &lt;/handlers&gt;
    &lt;/system.webServer&gt;
&lt;/configuration&gt;
</code></pre>

<p>When I browse the html file in browser it results in following error:</p>

<blockquote>
  <p>HTTP Error 500.21 - Internal Server Error Handler
  "PHP53_via_FastCGI_HTML" has a bad module "FastCgiModule" in its
  module list</p>
</blockquote>

<p>I've double checked following things:</p>

<ol>
<li>CGI component is already installed in windows components/features in control panel.</li>
<li><p>ApplicationHost.config file of IIS containing following add tag inside <code>&lt;globalModules&gt;</code> tag:  </p>

<p>add name="FastCgiModule" image="%windir%\System32\inetsrv\iisfcgi.dll"</p></li>
<li><p>ApplicationHost.config file of IIS is containing following add tag inside <code>&lt;Modules&gt;</code> tag:</p>

<p>add name="FastCgiModule"</p></li>
</ol>

<p>Some additional information related to FastCgiModule present in ApplicationHost.config. I see the following tags also present in handlers section. I've clipped them for brevity:</p>

<pre><code>&lt;handlers accessPolicy="Read, Script"&gt;
                &lt;add name="PHP_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files\PHP\v7.0\php-cgi.exe" resourceType="Either" /&gt;
                &lt;add name="PHP53_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.3\php-cgi.exe" resourceType="Either" /&gt;
</code></pre>

<p>Still I'm getting above mentioned error. Can anyone help me what I'm missing now?</p>