Page 1 of 1

localhost hangs

PostPosted: 14. May 2009 23:12
by gdansk
Hi,

I've been having trouble accessing localhost - the browser just hangs. The same happens with 127.0.0.1.

It *used* to work. I tried uninstalling and reinstalling xampp, but it still hangs. My firewall is turned off. I'm not using Skype. Does anyone else have this problem, and know how to fix it?

Thanks,
G

Re: localhost hangs

PostPosted: 15. May 2009 07:58
by Sharley
Check also your Anti-virus scanner - temporarily disable and test again.

Check that apache and MySQL are running?

Re: localhost hangs

PostPosted: 15. May 2009 10:41
by gdansk
Hi - thanks for your reply. I don't have any anti-virus software installed. Apache and MySQL are running. Any other ideas?

Re: localhost hangs

PostPosted: 15. May 2009 15:34
by caltuna
I run the Mac version but my guess is that apache is trying to write to a log file which either it can't find or is not writeable. What happens if you try http://localhost/xampp/index.php or http://localhost/xampp/phpinfo.php.

Re: localhost hangs

PostPosted: 17. May 2009 10:04
by imnotanerd
gdansk

I am assuming you are using windows vista.

I have found documentation and the requirements are as follows:

go to C:\Windows\System32\drivers\etc
In it you will find a file named 'hosts'
open it in your text editor and insert '#' before this line - ::1 localhost
save it and clear your browser cache.

I have read reports of this working successfully but for some reason this does not work for me and it is really ****ing me off.

But you give it a shot. Maybe it will work for you

Re: localhost hangs

PostPosted: 17. May 2009 11:48
by gdansk
caltuna: thanks a lot - that seems to have fixed it, though I don't understand how or why.

http://localhost/xampp/index.php didn't work, but http://localhost/xampp/phpinfo.php worked! And now localhost is working fine! I haven't done anything else, so I'm at a loss to explain how just pointing the browser at phpinfo.php could have fixed it, but many thanks anyway.