How to fix WampServer if localhost is not working
This short tutorial is about how to change default port: 80 on WampServer to different one - for example: 8080.
My experience is that if I have installed for example Skype, default port: 80 Skype using by default.
There are many others programs which can also use this port.
If you run http://localhost after fresh new installation of your WampServer and you don't see main window as is bellow, than you can do some steps.
1. Check if your WampServer is running.
2. If first choice didn't help, you can try to change port.
Today is current version of apache 2.4.9 which take care of running php and we need to change config of apache in this location:
File which we are interested in is: httpd.conf
You can download updated file here for apache 2.4.9: download>>
If your version of apache is different, open file httpd.conf with any text editor and find line #Listen 126.96.36.199:80
For me it's line 61.
We need to change next 2 lines - 62 and 63.
Instead of port: 80 change it to port: 8080
So you should have it like this:
Now save file and restart your WampServer.