title: How to set up/view PHP server pages in Eclipse with the PDT plugin (for php)
body: <p>I am trying to set up a PHP server on my localhost to run with the <code>Eclipse PDT</code>.
  I want to be able to view the PHP site I am developing on something like <code>http://localhost/MySite/index.php</code> so that I can <code>Run</code> it straight from Eclipse.</p>
  
  <p>I am using IIS 7.5 (windows 7 home premium) for the PHP server.</p>
  
  <p>So far I have followed these instructions, but have not been able to get it to work:</p>
  
  <ul>
  <li>Install <code>CGI</code> option in Windows Features</li>
  <li>Install <code>IIS Manager</code> in Windows Features (so I can run <code>inetmgr.exe</code>)</li>
  <li>Download the NTS-version of php and extract the zip to <code>C:/php</code></li>
  <li>Rename <code>php.ini-development</code> to <code>php.ini</code> and set the <code>extension_dir</code> variable</li>
  <li>Run <code>inetmgr</code> and create a new website to run PHP applications (I removed the <code>DefaultSite</code>):
  <ul>
  <li>Site Name: <code>My Site</code></li>
  <li>Physical Directory <code>C:/dev/MySite</code></li>
  <li>Application Pool: <code>DefaultAppPool</code></li>
  <li>Bindings:
  <ul>
  <li>Host: </li>
  <li>IP Address: <code>All Unasigned</code></li>
  <li>Port: <code>80</code></li>
  </ul></li>
  </ul></li>
  <li>In <code>inetmgr</code>: Click on handler mappings and add a new <code>Module Mapping</code>:
  <ul>
  <li>Request Path: <code>*.php</code></li>
  <li>Module: <code>FastCGIModule</code></li>
  <li>Executable: <code>C:/php/php-cgi.exe</code></li>
  </ul></li>
  </ul>
  
  <p>Now I have many problems:  </p>
  
  <ol>
  <li><p>In <code>IIS Manager</code>, when I click <code>Edit Site</code> > <code>Test Settings</code>, there is a yellow exclamation-mark warning: <code>Authorization: Cannot verify access to path (C:/dev/MySite)</code>:</p>
  
  <blockquote>
    <p>The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that \$ has Read access to the physical path. Then test these settings again.</p>
  </blockquote></li>
  <li><p>When I try to load any <code>.php</code> file directly from the webroot (C:/dev/MySite) it displays as plain-text in my web browser</p></li>
  <li><p>When I try to <code>Run</code> my project in Eclipse, it goes to <code>http://localhost/MySite/index.php</code> and there is a <code>404 Error: Website Not Found</code></p></li>
  <li><p>When I go to <code>http://localhost/</code> in my web browser, I also get a <code>404 Error</code>.</p></li>
  </ol>