Setting Up a WAMP Server
This tutorial will walk you through setting up a WAMP Server using software that can be found on sourceforge for use. First, a little description is an order. A WAMP Server is a Windows Machine that has Apache, MySQL, and PHP on it (WAMP – Windows, Apache, MySQL, PHP) To install these before you would have to get the installs and binaries and configure them yourself and set everything up which can be a tedious task as well as very time consuming. Now, thanks to sourceforge, you can get this functionality by simply installing an application. Once you are finished with this tutorial you will be able to follow our web-based tutorials without having a domain name and/or server. Let’s get started. First we need to download our software from wampserver.com.
Once on that site look for the above box to appear and click on Download WAMP Server 2.0
Save the file somewhere that you will be able to get to once it is finished completing. It is approximately 20 Megabytes, so depending on your connection, it may take a few minutes.
You should now see this icon wherever you chose to save the file. Double-click on it to start the installation.
Select to run the file if you are prompted to do so.
You will be prompted to not install this version over WAMP5 1.x. Click yes to continue with the installation.
This first install window simply welcomes you to the installer for this application. Click next to continue.
This window contains the GNU GENERAL PUBLIC LICENSE that will allow you to use this software. Once you review this click the I Accepts radial button and click next to continue.
This box let’s you pick where you would like to install all of the files. You can change this if you like but if you do, bear in mind that you should put it in a folder that does not contain any spaces as some browsers/servers have issues handling spaces in file names. This is also where your web files will be stored under a directory called ‘www’. If you are unsure, leave this default.
This window will allow you to create the desktop icon and the quick launch icon to start the server by the click of a button.
This window just reviews all installation options. Verify the settings are correct and click next to start installing the application.
This is installing the software.
You will get the above prompt to configure FireFox as your default browser for the WAMP Server if you would like, otherwise it will use Internet Explorer.
This window will allow you to configure your server to forward any e-mail that your php creates to a proper server and e-mail account so that they will go to the right person once you are using it. If you don’t know these values or have the ability to use them, just leave them default.
This is the completion window. You have the ability to launch the server automatically after closing this window if you would like. Click Finish to start the application.
Once the server is running, you will see the above icon and the taskbar for the WAMP Server.
The above menu is what you will get if you simply left-click once on the tray icon.
Localhost – This option simply open the webpage that is stored in the home directory (which is “C:\wamp\www\index.php” by default). You can also get to this page by typing “localhost” in your web browser, or by typing 127.0.0.1 in your web browser.
phpMyAdmin – This option will launch phpmyadmin (which can also be launched by going to http://localhost/phpmyadmin/ in your web browser. phpMyAdmin is a tool to manage, query, select, and browse your MySQL databases. It is php based and relatively simple to use.
SQLSiteManager – This launches a tool to create and delete entire databases. You use this to create the databases and use phpmyadmin to manipulate the data in them. This can also be access from http://localhost/sqlitemanager/ in your web browser.
www Directory – this will open the folder where your sites files are stored. These are the files that are called when you go to localhost.
Apache – This area has the configuration settings for Apache and will allow you to make configuration that you need to make to this service.
PHP – This area has the configuration settings for PHP and will allow you to make configuration that you need to make to this service.
MySQL – This area has the configuration settings for MySQL and will allow you to make configuration that you need to make to this service.
Then you also have the options to control the services and take the server on and off line.
By default the server is set up with an index.php file that will show you the services that are started for the service. This file will also show you the projects that have started on your server based on the folders that are within the www folder. You do not have to keep this file if you do not wish to. You can delete it and make your own index.php that will be shown whenever you access localhost. There are many configurations that can be made to this server setup. Explore them and have fun. I hope this tutorial was easy to follow and thanks for reading.
Popularity: 30% [?]


























on July 16th, 2008 at 3:31 am
[...] Access a MySQL Database Using PHP” tutorial. Since writing that original tutorial I have created a local WAMP test environment. I have created the database “test” with a table “testable”. The table contains the [...]
on August 27th, 2008 at 1:10 pm
[...] This tutorial will require a server that can handle PHP code. If you would like to set one up on your computer, check out Mike’s “Installing WAMP tutorial”. [...]
on September 11th, 2008 at 2:04 pm
thanks
on September 12th, 2008 at 4:43 am
why is that when we are installing the wamp server 2 our pc is shutting down and the installation is neglected? please answer my question.
on September 17th, 2008 at 5:11 am
Hi,
Really it works well. I’m pleased about it. If it contains a complete text-pad(source code editor) then the result is entirely unique.
Reza, Bangladesh.
on September 22nd, 2008 at 11:17 pm
[...] of this code and execution on my local PC thanks to WAMP Server which can be installed by following Installing a WAMP Server. To get started we will need to create our database. To do this, run the following in your SQL [...]
on October 10th, 2008 at 3:42 pm
i’d like to add one thing……. WAMP-Server Won’t Start if are Running “IIS”.
Stop the IIS, then WAMP Server Will Work Perfectly
Open “Command Promt”, Type: iisreset/stop
That is: iisreset /stop PRESS Enter.
You’re Done.
on October 29th, 2008 at 10:55 pm
[...] that also explained how to install a WAMP server correctly. Thankfully, that brought me to the TeamTutorials site. In addition to instructions, it had a link to the latest version of the WAMPServer 2.0 [...]
on January 23rd, 2009 at 12:18 pm
it helps us. so much!!!!! as in super duper much. like munchkins..hahahaha!!!!
on February 6th, 2009 at 7:22 am
new to the whole wamp thing, can someone please send a sample data-base communication tutorial, using wamp to me please, it’ll really be a great deal to me. thanks
on February 24th, 2009 at 5:02 am
I have wampserver 2 installed on my computer. But when I open localhost in my firefox browser, it says “Denied…..” I already do some tricks like on Peter Orlogas site but it didnt work.
can anybody help me through these?
inko
on March 29th, 2009 at 4:28 pm
Ok im total newbie to this, and i did everything said there…so now the question is how to connect my own domain with wamp and so people will be able to acces my website?
on March 29th, 2009 at 7:25 pm
You need to use your router and forward all traffic that comes in on port 80 to go to your computer that you are running the WAMP server on.
This tutorial will show you how to set up port forwarding on your router. It is down about 1/3 of the way through the tutorial.
Any questions, let me know. Thanks.
on March 30th, 2009 at 9:11 am
why it cannot work when an IIS is intalled?, should i uninstall IIS?
on March 30th, 2009 at 10:24 pm
I don’t see why you would need IIS and Apache to be running at the same time?
on April 8th, 2009 at 2:06 am
Just set the port in file php.ini to another port, say 8888.
Your server will have 2 web servers IIS with port 80 and Apache with port 8888
To accesss for apache you need to use http://www.domain.com:8888
cheers
on April 8th, 2009 at 9:39 pm
Wicked !!!!!!!!
on May 6th, 2009 at 7:52 am
Hi…i installed wamp 2.0 and everything. I put the server online and stuff but that icon in the system tray is showing that red piece. What am i doing wrong?
on May 8th, 2009 at 1:42 pm
Hi, have installed WAMP server on my laptop, but when i try connecting through WAMP5 server localhost the internet explorer would display an error massage. what should i do?
on May 8th, 2009 at 10:25 pm
Thomas are you connecting to http://localhost? Have you started wamp and verified that everything is online?
on May 9th, 2009 at 7:47 pm
i have the same problem. after wamp is online, http://localhost does not display
on May 9th, 2009 at 8:00 pm
Wait. if localhost command does not work, try 127.0.0.1 in the browser. that may work when typing in localhost does not
on May 9th, 2009 at 9:58 pm
if 127.0.0.1 works and localhost doesn’t it sounds like you do not have an entry for localhost in your host file.
on May 13th, 2009 at 10:42 pm
hi , good day, i have installed wamp server on my pc, i got problem with MySQL, it’s looking for password in order to access it. How can i change the default password, can you help me to have some work around here.
thanks.
on May 14th, 2009 at 1:51 am
It should just be a username of root and a blank password. That is what got me into mine.
on May 21st, 2009 at 3:08 am
guys,
i am trying to connect to wamp using hostname as :localhost & username :root with a blank password,but it ain’t allowing me ..saying..:network error :connection refused. any help?
i am trying to conncet via WinSCP
on May 21st, 2009 at 6:26 pm
with wampserver says i cant publish to it no fp server extions, how do i place then on this program in order to use frontpage 2000
on May 21st, 2009 at 11:16 pm
I just want to thank you for the following post which fix my issue:
#
wajahat said,
on October 10th, 2008 at 3:42 pm
i’d like to add one thing……. WAMP-Server Won’t Start if are Running “IIS”.
Stop the IIS, then WAMP Server Will Work Perfectly
Open “Command Promt”, Type: iisreset/stop
That is: iisreset /stop PRESS Enter.
You’re Done.
on June 22nd, 2009 at 3:04 pm
WAMP server installed on XP with no error messages, but will not run.
localhost gets connection error
http://localhost/ brings up Bing
iisreset/stop returns (is not recognized as an internal or external command)
What should I try next?
on June 26th, 2009 at 11:37 pm
now i have wampserver how can they access the mysql database
on July 8th, 2009 at 10:26 am
hey im new in this wampserver thing. were could i upload my files? im just running it on my pc..no internet yet..help me!!
on July 15th, 2009 at 9:28 pm
hi i made a maplestory private sever but when i put the wamp online and start up all the service it turns white and then yellow i use the mysql
i have an aol blackcash123@aim.com please help me
on July 22nd, 2009 at 1:40 pm
Thank you very much for your useful tutorial
on August 5th, 2009 at 10:38 pm
a lot of things can learned this site.!!
on August 11th, 2009 at 9:40 pm
i click localhost or 127 also cannot displa localhost
on August 20th, 2009 at 12:06 am
I have installed wampserver2.0 but when i open the localhost in browser its shows an error ie unable to connect when just like the error when the cable is unplugged.Please help me to fix this
on August 28th, 2009 at 8:05 am
I installed wampserver2.0 i can able to run localhost but nothing is shown in localhost webpage. When i opened phpmyadmin it also shows a blank page.I don’t know how to rectify it. Can anybody help me for this?
on September 1st, 2009 at 4:04 pm
All installed, http://localhost/ brings up a page that says cannot find server.
Any ideas, I’ve read above but no one seems to have really answered this.
on September 4th, 2009 at 3:47 pm
Hi, I’m having a problem with *WAMPSERVER*, I’v installed it and that, and i click the icon and press ‘Put Online’ and i get a message saying ”Aestan Tray Menu: Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started.”
Please contact me via familycores@fsmail.net (Spam email will be put in Junk Folder, and if you are contacting me about this please put //lh164-wampserver/answer as the subject . Thank you)
on September 5th, 2009 at 1:07 pm
That error usually means that you are running one of the following applications: IIS, Skype, Zone Alarm, NOD32, Eset, Internet Optimizer, Google Accelerator, any other database server, any other webserver?
Check these and if you are try it without them running. You CAN use these apps at the same time, you will just need to configure them to use a different port.
on September 5th, 2009 at 1:13 pm
what if you goto 127.0.0.1 instead? Sometime there is an issue with your hosts file which prevents localhost from redirecting to the right place.
on September 10th, 2009 at 7:09 pm
Anyone have a manual or a tutorial of wamp.
From the basic to …
on September 12th, 2009 at 5:40 am
need help guys, im having problems in configuring wampserver my php doesn’t work. i click 5.3.0 version of my php in wampserver quick admin and this message pops up ” could not execute menu item(internal error)
[EAccessViolation] Access violation at address 0043AC36 in module
‘wampmanager.exe’. read of address 00000008
on September 14th, 2009 at 2:06 pm
well, thanks God! my problem is solved by this comment:
wajahat said,
on October 10th, 2008 at 3:42 pm
i’d like to add one thing……. WAMP-Server Won’t Start if are Running “IIS”.
Stop the IIS, then WAMP Server Will Work Perfectly
Open “Command Promt”, Type: iisreset/stop
That is: iisreset /stop PRESS Enter.
You’re Done.
&&& let me (Umair) add one more thing..
– simply click on wampserver icon on right bottom of the screen and then click on “Restart all services”.
&&& Thank you Wajahat…
on September 30th, 2009 at 5:05 pm
[...] A web server that handles PHP and MySql or setup a local Windows Apache MySql Php web server. [...]
on November 2nd, 2009 at 12:49 am
I had the sam trouble of error at localhost, Thanks to Mike Maguire, my Skype was causing troubles in my service,
Thanks a lot for your comment Mike,
Elias V. Tipacamu
Mexico
Mike Maguire said,
on September 5th, 2009 at 1:07 pm
That error usually means that you are running one of the following applications: IIS, Skype, Zone Alarm, NOD32, Eset, Internet Optimizer, Google Accelerator, any other database server, any other webserver?
Check these and if you are try it without them running. You CAN use these apps at the same time, you will just need to configure them to use a different port.
on November 5th, 2009 at 1:31 pm
had the same prob. with skype!
on November 6th, 2009 at 7:39 pm
thanx, i am new to php and this was absolutely helpful!
on November 13th, 2009 at 1:23 pm
OK, comment re: Skype helped, but how do I configure them so I can use both (i.e., how, and to what port(s), should I adjust the programs? Thanks!
on November 14th, 2009 at 10:50 am
Problem with skype? exit the skype first and then start the Wamp and run again the skype.. thats what i do..
on November 20th, 2009 at 6:52 am
can anybody please show me how to remove my wamp completely and reinstall again without those error