those evil-natured robots, they're programmed to destroy us.

 

Disclaimer: I’m on Linux hosting (again). This was written a while back.

The Web Platform Installer is a great Microsoft offering for simplifying the installation of PHP and MySQL in a Windows environment. The only downside to it is that I couldn’t find any way of changing the install paths from the C partition. I’m guessing this was excluded in the interest of keeping it simple.

Log in to your server and open a browser
Browse to http://php.iis.net/
Click the ‘Click to Install PHP on IIS’ button
Download and run the Microsoft Web Platform installer
Go to Web Applications, Blog, and select WordPress (This will download MySQL. I couldn’t find a more straightforward way of accomplishing this in the installer.)
Choose Install/I Accept
Specify a root password for MySQL
Cancel the WordPress install if you don’t actually want it. You will still get MySQL

phpMyAdmin is the web app used to administer MySQL databases:

Browse to http://www.phpmyadmin.net/home_page/downloads.php
Download the latest *.english.zip version
Extract it to a subdirectory on your website
Rename the config.sample.inc.php to config.inc.php
You need to edit this file. Notepad does not properly handle Unix formatted files. The MSDOS Edit application does. You can alternately download a replacement editor for Notepad, such as Win32pad.
Click Start/Run and enter the following, substituting your path:
edit “e:\inetpub\website.com\wwwroot\phpmyadmin\config.inc.php”
Scroll down to the line that reads $cfg[‘blowfish_secret’] = ”; and enter a random string between the ‘ characters
Choose File and Save
Now browse to yourwebsite.com/phpmyadmin and login as root with the password you specified before

Microsoft chose to include a base set of PHP extensions. What if you need one that is excluded (such as mcrypt for phpMyAdmin)?

Browse to http://php.net/downloads.php
Download the ‘Non-thread-safe zip package’
Open the zip file and copy the file you need from the /ext directory to C:\Program Files\PHP\ext
For mcrypt, copy libmcrypt.dll to C:\Program Files\PHP
Open C:\Program Files\PHP\php.ini
Scroll to the bottom and add the extension you copied in the same fashion as the others listed
Save the file
Restart IIS (Start/Run/iisreset)