Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>IIS Express supports PHP without Web matrix. You can install just IIS Express alone and make it work with Visual Studio. For this you need Visual Studio 2010 SP1.</p> <ol> <li><p>Download IIS Express from this link: <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=abc59783-89de-4adc-b770-0a720bb21deb" rel="nofollow noreferrer">Internet Information Services (IIS) 7.5 Express</a></p></li> <li><p>In Visual Studio configure your WebSite/WebApplication project to use IIS Express. Take a look at this thread <a href="https://stackoverflow.com/questions/5030152/how-do-i-configure-a-website-project-to-use-iis-express/5044705#5044705">How do I configure a website project to use IIS Express?</a></p></li> <li><p>To enable PHP on IIS Express, install PHP and update applicationhost.config (%userprofile%\documents\iisexpress\config\applicationhost.config). You can use the version of appcmd.exe located in IIS Express installation folder for doing this. See <a href="http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/#Using_command_line" rel="nofollow noreferrer">this link</a> for details.</p></li> </ol> <p>If everything is installed in the default places for US English versions of Windows the commands will be:</p> <pre><code>"C:\Program Files (x86)\IIS Express\appcmd.exe" set config /section:system.webServer/fastCGI /+[fullPath='"C:\Program Files (x86)\PHP\php-cgi.exe"'] "C:\Program Files (x86)\IIS Express\appcmd.exe" set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='"C:\Program Files (x86)\PHP\php-cgi.exe"',resourceType='Unspecified'] </code></pre> <p>Note that if there are spaces in the full path of php-cgi.exe, you MUST enclose the path in single and double quotes as in the example above.</p> <p>Finally, if you don't have VS 2010 SP1, probably you should take a look at this post: <a href="http://www.intrepidstudios.com/blog/2010/7/11/debug-your-net-web-project-with-iis-express-t.aspx" rel="nofollow noreferrer">Debug Your .NET Web Project With IIS Express</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload