I am working on this web application which is mostly .NET, but a part is written in PHP. In my development environment, IIS Express is my web server of choice, so I would prefer to get PHP and .NET work together in this environment.
First naive attempt: Just throw the PHP scripts into the web site, and load them in a browser. The result is an HTTP Error 404.21 - Not Found
with the following suggestions:
- Install PHP and configure handlers correctly.
- Install and enable PHP for this web site.
- If you are using WebMatrix, follow these steps to enable PHP:
- Open the web site in WebMatrix.
- Select the Site workspace and click on Settings.
- Check the "Enable PHP" checkbox to install and enable PHP.
Not using WebMatrix, this does nothing to help me. I then proceed to do a deep trawl of anything related to IIS Express and PHP on Google. From what I read, it should be doable, but everything I find about the subject seems to assume that my IDE is WebMatrix. It isn't.
Does anyone know if it is possible to install on IIS Express and configure it to work with a Visual Studio based web site, without having to install WebMatrix? If yes, how?