Choose the Right WAMP Installer
There are a number of different WAMP installers out there you can use to install Apache, MySQL, and PHP on Windows (WAMP). Some of the better ones are: AppServ, EasyWamp, PHPDev, PHP Triad, Typo3 WAMP Installer (includes a CMS program), and WampServer. I'm going to show you how to use AppServ.
How to Install AppServ
- Download AppServ from SourceForge and double click it to open it.
- Agree to the license and then choose the directory where you want to install AppServ.
- I recommend you install all four elements: Apache, MySQL, PHP, and phpMyAdmin. The only one not required for a testing server is phpMyAdmin, but it's very useful.
- Because this is being set up as a testing server, use “localhost” as the server name and “admin@localhost” as the administrator's email address. You can leave the port the default (80).
- MySQL defaults to a blank root password, but that is very insecure, so give your set up a secure root password — one that you'll remember. Then click Install.
- AppServ will go through all the steps to install Apache, MySQL, and PHP on your system.
- Have AppServ start Apache and MySQL, and then browse to
http://localhost/to see your new website.
Configure Your WAMP Server
AppServ puts all your web pages into the “DocumentRoot” — this is located in the
www sub-directory off of the AppServ directory that you chose. The default is “C:/AppServ/www.”
I recommend changing this location, so that your testing server is located nearer to your other web files. To change the location of your server:
httpd.confin a text editor. The
httpd.conffile will be found in the
- Search for the word “DocumentRoot” in that file.
- Place a hash mark (#) at the front of the line that starts
DocumentRoot. This will comment out this line.
- Write a new line that reads:
DocumentRoot "Full path to your website directory"
- Then go down to a line that reads:
and change the path in quotes to your DocumentRoot path.
- Restart Apache (go to your Start menu, All Programs, AppServ, and choose “Apache Restart” in control server by service).
If you want phpMyAdmin running on your server, you'll need to copy the phpMyAdmin folder from the AppServ/www folder into your new DocumentRoot folder. Login using the root username and password you defined in setup.