I’ve posted a couple of things last week regarding how I use Virtual PC, and since recently I’ve been downloading web apps that need php and mysql I figured I would document what I did to make them go. One of the things I figured out very early on is my job is to find things to make us go, yes I stole that from a Star Trek episode but it’s so true!

So when I make new test servers I follow the steps outlined in this post first.

There are several ways to configure PHP and MySQL I’ll outline a couple the first would be the super easy installation which seems to get a functional install up and running quite quickly.

Web Platform Installer 2.0:

  1. If you don’t already have Web PI get it here.
  2. Once installed, launch the Installer from the Start menu
  3. Configure Web PI to see what we need
    1. Click “Options” select “Developer Tools”
  4. Next select the following components from “Web Platform”
    1. Web Server: “IIS 6.0”, “Fast CGI” and “URLScan 3.1”
    2. Frameworks: “PHP 5.2.11”

Getting mySQL to show up is a little tricky, you will need to select a web app that depends on a database, the easy option is Acquia Drupal. This will get everything up and running as well as having a highly customizable Content Management system. Once you select Acquia Drupal click Install and review your options, you will see the MySQL Windows Essential option is selected, you could at this point click the “X” next to Drupal and be done with it. Choose accept to get the process started and depending on your connection speed you should be done within 30 minutes. You will be prompted for to configure the root password for MySQL.

Once everything is complete you may want to flesh out your PHP installation, by downloading pear. I noticed that there are only a handful of extensions loaded with the Web PI version of PHP. Below is the list of extensions that are available to you when complete: