Monday, June 30, 2008

Run PHP and MySql and ASP.NET on Windows Server 2003 (IIS 6)

For a while now, I have been setting up my web servers with the ability to run PHP and MySql along side of my .NET sites on Windows Server 2003 (IIS 6). Now, if I only was to run PHP sites, I would be using Linux and Apache, but the majority of my work is in .NET. So, what you will need to make this happen is the following:


Installing the PHP is very straight forward. They have worked to make an installer file for us Windows guys that installs all the components that you need and does the configuring. The only thing you have to do per website is:
  • Reference the ISAPI module for PHP



  • Add "index.php" or whatever your default file is to the Documents tab.

And that's it. You should now be able to run PHP within that web site. The fun part is that you can now run PHP pages right next to your .NET pages in the same web site. :)

Have fun with this one.