Wamp Server On Windows 8
Wamp Server On 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 0.0.0.0:80
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 127.0.0.1 localhost is uncommented or add a line if it does not
exist.
Thats all. Restart WAMP Server and everything should work fine.