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

This is a quick guide to install and configure the Apache web-server with PHP, JSP, and Ruby on Rails support on a Windows XP Pro SP2 machine. I also included PHPMyAdmin, MyODBC, and WordPress. This is my first "published" guide. I made it for my own reference. Why not share? Did you find this guide useful? Feedback is appreciated. To remember this site in the future, simply visit apacheguide.org. If you want to avoid the hassle of setting up your own web server, I highly recommend 1&1 for web hosting.

Lets Get Started

Versions used:

Application Version
Windows XP SP2
Apache 2.2.3
PHP 5.1.6
Tomcat 5.5.20
Java 2 Standard Edition J2SE Runtime Environment 5.0 Update 8
MySQL 5.0.24a
Ruby on Rails 1.8.2-15
MyODBC Connector/ODBC 3.51.11-2
PHPMyAdmin 2.7.0-pl2
WordPress 2.0

Change Log:

2006.09.28
Rev 14
Jeff Lundberg
  • Updated Apache to 2.2.3
  • Updated PHP to 5.1.6 (using a DLL from 5.2.0RC5-dev)
  • Updated Tomcat to 5.5.20
  • Updated Java 2 to JRE 5.0 Update 8
  • Updated MySQL to 5.0.24a
2006.03.05
Rev 13
Jeff Lundberg
  • Updated PHP to 5.1.2
  • Updated Tomcat to 5.5.15
2005.12.27
Rev 12
Jeff Lundberg
  • Updated PHP to 5.1.1
  • Updated MySQL to 5.0.17
  • Updated PHPMyAdmin to 2.7.0 patch level 2
  • Updated Wordpress to 2.0
  • Added Ruby on Rails
2005.12.23
Rev 11
Jeff Lundberg
Kevin Saunders
  • Updated Tomcat to 5.5.12 with the help of Kevin Saunders.
  • Now using mod_jk-apache-2.0.55.so.
2005.12.13 Jeff Lundberg
2005.11.25
Rev 10
Jeff Lundberg
  • Updated PHP to version 5.1.0
2005.11.14
Rev 9
Jeff Lundberg
  • Added WordPress with MySQL 5 Support
2005.10.30
Rev 8
Jeff Lundberg
  • Updated Apache to version 2.0.55
  • Updated MySQL to version 5.0.15
  • Updated PHPMyAdmin to version 2.6.4-pl3
  • Minor updates & tips
2005.10.02
Rev 7
Jeff Lundberg
  • Complete remake of guide using latest versions of all software. The old guide is still available..
  • Broke up guide into several pages for easier navigation.
2005.01.09
Rev 6
Jeff Lundberg
  • Minor update to include other firewalls
  • PHP 5.0.3 update - libmysql.dll and libmysqli.dll have been merged to libmysql.dll.
2004.12.17
Rev 5
Jeff Lundberg
  • Converted to HTML
  • Minor fixes to inconsistencies.

2004.12.16
Rev 4

Jeff Lundberg

  • Updated to PHP 5.0.3
  • Fixed PHP mysql module problems
  • Fixed PHPMyAdmin
  • Updated some screenshots

2004.11.24
Rev 3

Jeff Lundberg,
Mark Gearhart

  • Upgraded all versions.
  • Updated Tomcat installation Instructions (thanks to Mark Gearhart for some updates).
  • Verified everything works with Windows XP SP2. (except mysql support in PHP!)
  • New screenshots – now featuring Firefox.
  • Reverted back to WinXP. Still works in 2000.

2003.08.18
Rev 2

Rob Garry
rob.garry@bentley.com

  • Changed workers.properties file
  • Used mod_jk2 connector
  • Updated version numbers
  • Using Windows 2000 instead of XP. (C:\WINDOWS becomes C:WINNT)

2002.08.01
Rev 1.5

Jeff Lundberg,
Andrew Conrad,
Rick Reumann,
Dallas Thunder

  • Changed workers.properties file – the ajp14 stuff was removed
  • Modified php.ini.

2002.07.31
Rev 1

Jeff Lundberg

  • Modified workers.properties file – some paths were for older versions of Tomcat

2002.07.26
Rev 0

Jeff Lundberg

  • Modified step 5 of JSP install - hardcoded the Tomcat
    configuration into the Apache httpd.conf file.
  • Also added MySQL installation instructions.

Note to Windows 2000 users:
This guide should work with Windows 2000 as well. Remember to replace C:\WINDOWS with C:\WINNT where you find it in the tutorial.