redcoder
redcoder

Reputation: 2333

localhost in WAMP not working

i use WAMP 2.2. installed and the ison is green. problem is the , when I enter locahost in URL , it doesn't work but when I enter 127.0.0.1 it works.

what is the reason ?

Upvotes: 0

Views: 147

Answers (2)

rightstuff
rightstuff

Reputation: 6532

Chances are that either:

A. Your Windows Hosts file does not have this entry:

127.0.0.1 localhost

B. Or this entry is 1st (comes before the above), and Apache is Listening on IPv4 only:

::1 localhost

In the second case, just remove or comment out the entry.

Hosts file path:

C:Windows\system32\drivers\etc\hosts

You'll need to edit Hosts file via 'Run as admin' on Notepad.

Upvotes: 1

M_R_K
M_R_K

Reputation: 6370

You must be using windows 8. Please follow this guide to fix your wamp in Windows 8

How to run WAMP Server on Windows 8

Downgrading to Windows 7 is not a bad option if you are a regular developer.

Upvotes: 0

Related Questions