Browser can not conect to localhost
Posted by: sulfsby (---.79-160-40.customer.lyse.net)
Date: December 16, 2012 04:49PM

I have just installed WampServer, but the browser (Crome, Firefox) can not connect to localhost nor phpMyAdmin. What is wrong?

Options: ReplyQuote
Re: Browser can not conect to localhost
Posted by: RiggsFolly (---.as13285.net)
Date: December 16, 2012 04:50PM

More information!

What OS?
What version of WAMP?
Was it 32bit or 64bit?

Options: ReplyQuote
Re: Browser can not conect to localhost
Posted by: sulfsby (---.79-160-40.customer.lyse.net)
Date: December 16, 2012 04:52PM

Windows 7 64 bit
WampServer 2.2

Options: ReplyQuote
Re: Browser can not conect to localhost
Posted by: RiggsFolly (---.as13285.net)
Date: December 16, 2012 07:36PM

This is probably an IPV4 / IPV6 issue.

Wamp comes configured expecting you to use IPV4, but W7 and W8 have IPV6 available as well as IPV4.


Make the following changes to

httpd.conf

Listen 80 to Listen 0.0.0.0:80

this tells Apache to listen on on the IPV4 network


Also edit your hosts file

c:\windows\system32\drivers\etc\hosts ( no extension )


Make sure you have this line existing in the file

127.0.0.1 localhost

If you have this line comment it out with a '#'
::1 localhost


===========================================================================

The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate your editors icon on the desktop or from the Start menus ( notepad will do if you have nothing else )
left click + shift over your chosen editor icon - will show a menu.
select "Run As Administrator" from the menu.
Navigate your editor to the c:\windows\system32\drivers\etc\hosts file.

When you have made changes you will now be allowed to save them.

Options: ReplyQuote
Re: Browser can not conect to localhost
Posted by: sulfsby (---.79-160-40.customer.lyse.net)
Date: December 17, 2012 11:31PM

I changed Listen 80 to Listen 0.0.0.0:80 in httpd.conf and
::1 localhost to #::1 localhost
The error message changed to This link seems to be broken.

First time I tried to connect to localhost, I got a warning that TemViewer was using gate 80. I changed settings in TeamViewer, but then I got the message Can not connect to localhost.

Options: ReplyQuote
Re: Browser can not conect to localhost
Posted by: sulfsby (---.79-160-40.customer.lyse.net)
Date: December 18, 2012 09:40PM

Anybody?

Options: ReplyQuote


Sorry, only registered users may post in this forum.