Setting up Wamp Server in Windows 8. (Bonus – Windows 10)

Unable to run WAMP/XAMPP in Windows 10? Try this.

Have you ever tried installing WAMP Server on your brand new Windows 8 ? If you have I am sure you have found WAMP crashing OR your

access to localhost has been forbidden. 

The reason why it happens is IPV6. Windows 8 is by default an IPV6-first Operating System. How? Well just go to command-prompt and run the command

ping localhost  

You will be getting response from ::1 i.e. the loopback address for IPV6. When you try to connect to the server it uses the port 80 along with IPV6 to locate it.

WAMP by default runs on IPV4 and it is not configured to run on IPV6. This creates a conflict in the server configuration. What you should do is open the file…

your-wamp-installation-folder\bin\apache\Apache2.2.21\conf\httpd.conf   e.g.  C:\wamp\bin\apache\Apache2.2.21\conf (In my case)

Find a line that says Listen 80 and replace that with Listen

Go to your hosts file that is located at C:\Windows\System32\drivers\etc folder and edit the file using Administrator Rights. Make sure the line ::1 localhost is commented and localhost is uncommented or add a line if it does not exist.

Thats all. Restart WAMP Server and everything should work fine.


47 thoughts on “Setting up Wamp Server in Windows 8. (Bonus – Windows 10)

      1. what errors are you getting?? did you check your apache logs..

        Also make sure you have the required dotNet version in your system.

    1. thank you so muchh !!!!!!!!!!! really… i am just starting to learn php. and i faced this problem at the very first. i was scared but now its working fine. thanks a lot.

  1. cool this is the solution, the wamp server icon is green but still say is offline but working, something important to edit the hosts file I did use HOSTSMAN great tool to do it,

    1. the meaning of offline in wamp means something else. When wamp is online, it means it can accept requests from all ip addresses denying no one. when offline, it denies everything other than localhost. and for me notepad is just fine to edit that.

  2. thanks a lot… its wrking on my win8…before it ,i was thinking to reinstal win7…..but u save me from this trouble……

  3. Wow, total lifesaver! I was pulling my hair out over this one. I only wish that this would have been at the top of my search results, would have saved me a lot of trouble. Thanks for the info.

  4. I am trying to install the wordpress with the wamp, and I have done all of this part above. However, when i create the database wordpress and I then go to set it up I have the right database name, just it is saying ‘cant select database’ Can you help me with this?

    1. are you sure your database settings in config file are ok? or the database name that you are providing? a quick googling gives a lot of known reasons why this might be happening…

  5. Thank you! Thank you! Thank you! I tried your solution a couple of times, and couldn’t get it work, and I was thinking, “This answer is sh*t….⌐_⌐. It’s not working at all…”. And then I realized that you said you have to “Restart WAMP”, and then I did that, and it worked. ^_^” lol

    Anyway, thanks a lot for the great info.! Bookmarking!! 😉

  6. I opened the file in conf folder, it’s not allowing me to change anything in that file…it’s httpd.conf..Help!

  7. I did all of this and dont working, icon isnt green and localhost page is blank, port is used by system?

    What to do?

    1. can you tell me if you have skype installed or not? if so, skype occupies that port. so you gotta close it completely before you work with apache or change your port to something else other than 80

  8. wamp/bin/apache/apache2.4.18/conf
    after that u say find a line listen 80 but in my case not found
    what should i do???

  9. 1.) Running NTFS drive on Windows 10 64 bit
    2.) Updated all necessary Microsoft Visual C/C++
    — Microsoft Visual C/C++ Redistributable 2008 (VC9)
    — Microsoft Visual C/C++ Redistributable 2010 (VC10)
    — Microsoft Visual C/C++ Redistributable 2012 (VC11)
    — Microsoft Visual C/C++ Redistributable 2013 (VC13)
    — Microsoft Visual C/C++ Redistributable 2015 (VC14)
    3.) Installed in C:\wamp64
    4.) Ran installer as “Administrator”
    5.) IIS was never on before or after install.
    6.) Tried changing “listen line 80 to listen line, 8080 amd 8090 for :your-wamp-installation-folder\bin\apache\Apache2.2.21\conf\httpd.conf”
    7.) Went to “C:\Windows\System32\drivers\etc folder and edited the file using Administrator Rights. Made sure the line ::1 localhost is commented and localhost is uncommented”
    8.) World Wide Web Publishing Service is not loaded into my install of Windows 10.

    I have dug around and the above is all I have been able to find for a fix so far in my searches. From the point of install, on every install that I had, I have had a green light on. I have been able to turn the light from green to yellow to red, by manipulating listen line 80 and after putting that back to green, have been successful in viewing my project file in the wamp64/www/ folder. I have also been able to change the project folder name and have the changes show up in my browser once I refreshed it. Port tests are all checking out as correct and error logs are giving me no cause for alarm.

    Based of all of the above mentioned, it seems like WAMP is up and running properly and it is reading my project file, but it seems like something may still not be configured correctly. I still keep getting the “Server not found” page.

    This is my first time using this, so perhaps it was something that I did in setting up my project file? I am running out of options, as all of the pages and videos that I look up on this subject seem to only repeat the information of one or all of the steps that I have already tried above. Any other suggestions would be greatly appreciated.

Your Comments :

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s