wampserver - localhost is not working in wamp server -


my localhost not working, when type 127.0.1.1 on browser working. when run localhost, following thinglocalhost

please advice me how solve this.

this looks have not editied hosts file properly.

edit c:\windows\system32\drivers\etc\hosts

you should have @ least these lines in there, uncommented i.e. without # in column 1

127.0.0.1  localhost ::1        localhost 

it these lines create domain name localhost

once file edited , saved either restart windows or use these commands windows command windows started using "run administrator"

net stop dnscache net start dnscahce 

how edit hosts file

the hosts file protected windows, in order save must have administrator privilages. vista/w7/w8 may think administrator not. save hosts file launch editor admin privileges.

locate editors icon on desktop or start menus ( notepad if have nothing else ) right click + shift on chosen editor icon - show menu. select "run administrator" menu. navigate editor c:\windows\system32\drivers\etc\hosts file. when have made changes allowed save them.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -