Building Apache, PHP, MySQL development environment on Windows with WAMPServer

WampServer is a Windows web development environment. It allows you to create web applications with Apache, PHP and the MySQL database. It also comes with PHPMyAdmin and SQLiteManager to easily manage your databases. The setup process is very easy, just follow the on-screen instruction, but if you think it still make you some difficult to set it up, follow my image step-by-step installation guide, I'm sure you cannot lost :-)

For advanced reader:This is the very basic guideline to build up a PHP development environment for novice PHP learner who is as stupid as me in the beginning, please don't blame me why I write this very basic article :-)

Install WAMP

Let start, firstly you will needs to download the latest WAMP package from http://www.en.wampserver.com/download.php

After done, double click on the downloaded file to run it. The following screen will appears

Apache PHP MySQL on Windows step 1

Setup Apache PHP MySQL on Windows step 1: WAMPServer warning about don't install WAMP 2.x over WAMP5 1.x, if you not installed WAMP5 in the past, just click Yes

Apach PHP MySQL on Windows

Setup Apache PHP MySQL on Windows step 2:On the Welcome page, just click Next

Apach PHP MySQL on Windows with WampServer

Setup Apache PHP MySQL on Windows step 3:Choose as the above screen then click Next

Apache PHP MySQL on Windows with WampServer

Setup Apache PHP MySQL on Windows step 4: Change your installation directory if needs, then click Next

Apache PHP MySQL on Windows with WampServer

Setup Apache PHP MySQL on Windows step 5: Choose as your wish to place a shortcut on your desktop, or Quick Launch button, then click Next

Apache PHP MySQL on Windows with WampServer

Setup Apache PHP MySQL on Windows step 6: Everything is ok, now click Install to allow setup wizard copy needed files to your system

Apache PHP MySQL on Windows with WampServer

Setup Apache PHP MySQL on Windows step 7: Err, it's not exactly a step, the only thing you needs to do in this step is ... waiting :D

Apache PHP MySQL on Windows with WampServer

Setup Apache PHP MySQL on Windows step 8: If your system contains Firefox (as mine), setup wizard will detect it and ask if you want Firefox become default browser for WAMP, just click Yes :-)

Apache PHP MySQL on Windows with WampServer

Setup Apache PHP MySQL on Windows step 9: Enter your SMTP server if you have one, and the email where Apache needs to send from (the sender). If you don't have mail server yet, go through my article to setup your own development mail server with hMailServer, then enter your configured domain and account into those field, or just leave the default values.

I will have another article to help you setup mail server for your development environment. I already write an article to help you setup your own development mail server with hMailServer, check it out.

Apache PHP MySQL on Windows with WampServer

Setup Apache PHP MySQL on Windows 10: Phew, the installation is complete, just click Finish

Apache PHP MySQL on Windows with WampServer step 11

Setup Apache PHP MySQL on Windows 11: In your system tray now will appear an half-pie icon, if it not white (a little red or yellow), click on it and choose Start All Services. It should become white

You will may cannot start WAMPServer, the most common problem is your IIS or another web server is started, and use port 80 the default port for web server, of course, Apache want it. Just stop IIS Admin and World Wide Web Publishing service then try again.

Almost done!!! We just finished setting up your very basic web development environment, let try it.

Test your development environment

Open your favorite editor (e.g. notepad), enter the following:

<?php
echo "<h1>Hello world from PHP!</h1>";
?>

Save it as helloworld.php under your www directory.

Apache PHP MySQL on Windows with WampServer[

To open your www directory: Click on the half-pie icon, choose 'www directory'

Then open your browser, type in: http://localhost/helloworld.php

You will and must see similiar as the below screen

Apache PHP MySQL on Windows with WampServer

Hello World example

Congratulation!!! You just finished setup your Apache, PHP, MySQL development environment with WAMPServer and run your first PHP page.

Please note: This is only the very basic installation, it may not enough for your development requirement, if you get any trouble to setup your environment, contact me, I will find the solution and revert back to you :-)