title: IIS and PHP: HTTP Error 404.3 - Not Found: The page you are requesting cannot be served because of the extension configuration
body: <p>I'm trying to setup PHP and WordPress on IIS. I followed <a href="https://stackoverflow.com/questions/19908067/iis-8-wont-run-php">this post</a>. I also checked <a href="https://stackoverflow.com/questions/22492690/http-error-404-3-not-found-the-page-you-are-requesting-cannot-be-served-beca">here</a> and <a href="https://stackoverflow.com/questions/4388066/the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configura">here</a>.</p>
  
  <p>But still get an error when requesting my page: <a href="http://www.example.com/wordpress/wp-admin/post.php" rel="nofollow noreferrer">http://www.example.com/wordpress/wp-admin/post.php</a>
  <code>HTTP Error 404.3 - Not Found: The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.</code></p>
  
  <p>However, I am able to request the info.php (with just this code: <code>&lt;?php phpinfo(); ?&gt;</code>) and I get the expected results, first section here:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;
  &lt;style type="text/css"&gt;
  body {background-color: #ffffff; color: #000000;}
  body, td, th, h1, h2 {font-family: sans-serif;}
  pre {margin: 0px; font-family: monospace;}
  a:link {color: #000099; text-decoration: none; background-color: #ffffff;}
  a:hover {text-decoration: underline;}
  table {border-collapse: collapse;}
  .center {text-align: center;}
  .center table { margin-left: auto; margin-right: auto; text-align: left;}
  .center th { text-align: center !important; }
  td, th { border: 1px solid #000000; font-size: 75%; vertical-align: baseline;}
  h1 {font-size: 150%;}
  h2 {font-size: 125%;}
  .p {text-align: left;}
  .e {background-color: #ccccff; font-weight: bold; color: #000000;}
  .h {background-color: #9999cc; font-weight: bold; color: #000000;}
  .v {background-color: #cccccc; color: #000000;}
  .vr {background-color: #cccccc; text-align: right; color: #000000;}
  img {float: right; border: 0px;}
  hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
  &lt;/style&gt;
  &lt;title&gt;phpinfo()&lt;/title&gt;&lt;meta name="ROBOTS" content="NOINDEX,NOFOLLOW,NOARCHIVE" /&gt;&lt;/head&gt;
  &lt;body&gt;&lt;div class="center"&gt;
  &lt;table border="0" cellpadding="3" width="600"&gt;
  &lt;tr class="h"&gt;&lt;td&gt;
  &lt;a href="http://www.php.net/"&gt;&lt;img border="0" src="/info.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo" /&gt;&lt;/a&gt;&lt;h1 class="p"&gt;PHP Version 5.3.28&lt;/h1&gt;
  &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;&lt;br /&gt;
  &lt;table border="0" cellpadding="3" width="600"&gt;
  &lt;tr&gt;&lt;td class="e"&gt;System &lt;/td&gt;&lt;td class="v"&gt;Windows NT MSFT-SURFA 6.2 build 9200 (Unknow Windows version Enterprise Edition) i586 &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Build Date &lt;/td&gt;&lt;td class="v"&gt;Dec 10 2013 22:04:40 &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Compiler &lt;/td&gt;&lt;td class="v"&gt;MSVC9 (Visual C++ 2008) &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Architecture &lt;/td&gt;&lt;td class="v"&gt;x86 &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Configure Command &lt;/td&gt;&lt;td class="v"&gt;cscript /nologo configure.js  &amp;quot;--enable-snapshot-build&amp;quot; &amp;quot;--enable-debug-pack&amp;quot; &amp;quot;--disable-zts&amp;quot; &amp;quot;--disable-isapi&amp;quot; &amp;quot;--disable-nsapi&amp;quot; &amp;quot;--without-mssql&amp;quot; &amp;quot;--without-pdo-mssql&amp;quot; &amp;quot;--without-pi3web&amp;quot; &amp;quot;--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared&amp;quot; &amp;quot;--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared&amp;quot; &amp;quot;--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared&amp;quot; &amp;quot;--with-enchant=shared&amp;quot; &amp;quot;--enable-object-out-dir=../obj/&amp;quot; &amp;quot;--enable-com-dotnet=shared&amp;quot; &amp;quot;--with-mcrypt=static&amp;quot; &amp;quot;--disable-static-analyze&amp;quot; &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Server API &lt;/td&gt;&lt;td class="v"&gt;CGI/FastCGI &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Virtual Directory Support &lt;/td&gt;&lt;td class="v"&gt;disabled &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Configuration File (php.ini) Path &lt;/td&gt;&lt;td class="v"&gt;C:\WINDOWS &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Loaded Configuration File &lt;/td&gt;&lt;td class="v"&gt;C:\Program Files (x86)\PHP\v5.3\php.ini &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Scan this dir for additional .ini files &lt;/td&gt;&lt;td class="v"&gt;(none) &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Additional .ini files parsed &lt;/td&gt;&lt;td class="v"&gt;(none) &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;PHP API &lt;/td&gt;&lt;td class="v"&gt;20090626 &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;PHP Extension &lt;/td&gt;&lt;td class="v"&gt;20090626 &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Zend Extension &lt;/td&gt;&lt;td class="v"&gt;220090626 &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Zend Extension Build &lt;/td&gt;&lt;td class="v"&gt;API220090626,NTS,VC9 &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;PHP Extension Build &lt;/td&gt;&lt;td class="v"&gt;API20090626,NTS,VC9 &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Debug Build &lt;/td&gt;&lt;td class="v"&gt;no &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Thread Safety &lt;/td&gt;&lt;td class="v"&gt;disabled &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Zend Memory Manager &lt;/td&gt;&lt;td class="v"&gt;enabled &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Zend Multibyte Support &lt;/td&gt;&lt;td class="v"&gt;disabled &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;IPv6 Support &lt;/td&gt;&lt;td class="v"&gt;enabled &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Registered PHP Streams &lt;/td&gt;&lt;td class="v"&gt;php, file, glob, data, http, ftp, zip, compress.zlib, https, ftps, phar, sqlsrv   &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Registered Stream Socket Transports &lt;/td&gt;&lt;td class="v"&gt;tcp, udp, ssl, sslv3, sslv2, tls &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td class="e"&gt;Registered Stream Filters &lt;/td&gt;&lt;td class="v"&gt;convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.* &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;&lt;br /&gt;
  &lt;table border="0" cellpadding="3" width="600"&gt;
  &lt;tr class="v"&gt;&lt;td&gt;
  &lt;a href="http://www.zend.com/"&gt;&lt;img border="0" src="/info.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42" alt="Zend logo" /&gt;&lt;/a&gt;
  This program makes use of the Zend Scripting Language Engine:&lt;br /&gt;Zend&amp;nbsp;Engine&amp;nbsp;v2.3.0,&amp;nbsp;Copyright&amp;nbsp;(c)&amp;nbsp;1998-2013&amp;nbsp;Zend&amp;nbsp;Technologies&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;&lt;br /&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>SOLUTION:
  (thanks to @Kul-Tigin)</p>
  
  <p>My <code>wordpress\web.config</code> file contained code:</p>
  
  <pre><code>    &lt;handlers&gt;
          &lt;remove name="PHP53_via_FastCGI" /&gt;
      &lt;/handlers&gt;
  </code></pre>
  
  <p>After commenting that out, it works.</p>