Installing PHP and MySQL under Windows XP using the WinLAMP package

(Apache, PHP, MySQL, phpMyAdmin, PHP PEAR library)

What is WinLAMP?

If you want to set up a (development) server to create database-driven websites and web applications in PHP and MySQL you can use the WinLAMP package as a relatively easy way to get started.

WinLAMP installs the necessary software to run a web server and database server on your computer, i.e. the Apache webserver with the PHP module, the MySQL database, the web-based phpMyAdmin database administration tool, and finally the PHP PEAR library that contains a number of useful PHP function that, among many other things, makes working with databases easier and more portable.

However, be aware that this installation opens your computer to a number of security vulnerabilities which is why I strongly suggest that you install a personal firewall software first.

Enabling Windows XP's built-in firewall

Note: Do this only if you do not already have another firewall (e.g. Zonealarm, BlackICE) installed

Downloading WinLAMP

Installing WinLAMP

Configuring WinLAMP

Installing PEAR (The database library etc.)

Setting up a password for MySQL

Using PHP, MySQL and phpMyAdmin

To create a PHP/MySQL based web application just save your files into "c:\Apache\htdocs".
You can view your web application by opening a web browser and going to: http://localhost/.