Install & Configure Apache, PHP, JSP, Ruby on Rails, MySQL, PHPMyAdmin & WordPress on Windows XP/2000

Prerequisites

Before we get started, we need to download all the appropriate components. Depending on what your goal is, you may only require a subset. Each section of the guide also includes what components are required so you can skip this page if you want. I recommend using the latest versions of all the software. The versions this guide uses are also documented.

Windows

Version: Windows XP SP2

This guide was written for Windows XP. However, it should work fine with Windows 2000. If you're using Windows 2000, remember to replace C:\WINDOWS with C:\WINNT wherever you see it in this guide.

Apache

From the Apache HTTPD download page, download the latest Win32 Binary (MSI Installer). The latest version should be under a section titled "the best available version".

Version: 2.2.3
File Name: apache_2.2.3-win32-x86-no_ssl.msi
Download Location: http://httpd.apache.org/download.cgi

PHP

On the PHP download page, click on the zip package under the Windows Binaries section. Choose a mirror to begin downloading.

Version: 5.1.6
File Name: php-5.1.6-Win32.zip
Download Location: http://www.php.net/downloads.php

To get around a known bug with PHP 5.1 and Apache 2.2, you must also download a newer version of PHP.

Version: 5.2.0RC5-dev
File Name: php5.2-win32-latest.zip
Download Location: http://snaps.php.net/win32/php5.2-win32-latest.zip

JSP

Java 2 Standard Edition

Visit http://java.sun.com/javase/downloads/ and click the Download link next to Java Runtime Environment (JRE) 5.0 Update 8. Accept the license agreement and then download Windows Offline Installation, Multi-language (15.74MB).

Version: J2SE Runtime Environment 5.0 Update 8
File Name: jre-1_5_0_08-windows-i586-p.exe
Download Location: http://java.sun.com/javase/downloads/

Jakarta Tomcat

On the Jakarta Tomcat 5 Download page, click on the Windows Executable link for "Core" version 5.5.20 to begin downloading.

Version: 5.5.20
File Name: apache-tomcat-5.5.20.exe
Download Location: http://tomcat.apache.org/download-55.cgi

Apache-Tomcat Connector

Download mod_jk.so from http://tomcat.apache.org. Click on Tomcat Connectors (under "Download" on the left-hand side), and then click JK 1.2 Binary Releases. Under Win32, select jk-1.2.19 and find mod_jk-apache-2.2.3.so.
Note: Don’t use mod_jk2. It has been deprecated.

Version: 1.2.19
File Name: mod_jk-apache-2.2.3.so
Download Location: /tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.19/

MySQL

On the MySQL download page, click on "Pick a mirror" for the latest Windows (x86) version (34.9MB). Registering is optional, so just click "No thanks, just take me to the downloads!". Select a mirror to start downloading.

Version: 5.0.24a
File Name: mysql-5.0.24a-win32.zip
Download Location: http://dev.mysql.com/downloads/mysql/

Note: If you plan on installing phpBB, I recommend using MySQL 4.1. There's a thread on the phpBB forum about installing with MySQL 5.0.x (Thanks to John H. for pointing it out).

Ruby on Rails

Download the "One-Click Installer" for Windows from http://rubyforge.org/

Version: 1.8.2-15
File Name: ruby182-15.exe
Download Location: http://rubyforge.org/frs/?group_id=167

PHPMyAdmin

On the PHPMyAdmin homepage, click the zip link for the latest stable version. Choose a sourceforge mirror to begin downloading.

Version: 2.7.0-pl2
File Name: phpMyAdmin-2.7.0-pl2.zip
Download Location: http://phpmyadmin.net/

MyODBC

On the MySQL Connector ODBC download page, click on "Pick a mirror" for the latest Windows Driver Installer (MSI). Select a mirror to start downloading.

Version: 3.51.11-2
File Name: MyODBC-3.51.11-2-win.msi
Download Location: http://dev.mysql.com/downloads/connector/odbc/

WordPress

WordPress requires PHP and MySQL. On the WordPress download page, click on "Download .zip".

Version: 2.0
File Name: wordpress-2.0.zip
Download Location: http://wordpress.org/download/