Page 1 of 1

Cannot connect to localhost

PostPosted: 04. April 2009 16:07
by SamLoomis
so I had a working WAMP before and I started the service, but my browser cannot connect to http://localhost/ for some reason... So I tried installin XAMPP instead and I'm still having the same problem. I've tried:

1) uninstalling WAMP
2) Installing XAMPP
3) seeing no other program is using port 80 (through command prompt)
4) editing XAMPP configuration files to use a different port
5) restarting XAMPP/browser/windows (vista 32 bit)
6) I don't have skype (common problem with it I'm told)
7) editing windows/system32/drivers/etc/hosts file... (found instructions on this forum) but couldn't since I can't save the file!!

Also, these error messages came up when I checked install APACHE and MYSQL services:

Image

Image

Image

I've tried 2 different forums already ... no one seems to have an answer for this... remember
my WAMP woked fine before.. could be a windows update that messed everything up?

Re: Cannot connect to localhost

PostPosted: 04. April 2009 16:44
by Wiedmann
Also, these error messages came up when I checked install APACHE and MYSQL services:

You have started the installer more then one time?

Or:
Can you install XAMPP without installing Apache/MySQL as service, and can start the servers with the batchfiles?

Re: Cannot connect to localhost

PostPosted: 04. April 2009 16:49
by SamLoomis
I tried that too but I still couldn't connect to localhost.

and yes, I've uninstalled and installed a few times now... first time I didn't check install APACHE and MySQL as services.

Re: Cannot connect to localhost

PostPosted: 04. April 2009 16:52
by Wiedmann
I tried that too

You have tried what?

Re: Cannot connect to localhost

PostPosted: 04. April 2009 18:27
by SamLoomis
Installing again without APACHE/MYSQL services... not excatly sure what you mean by starting with batchfiles.
Sorry if come out as confusing to you, I'm not an expert at this and the rage is clouding my thinking process. =)

Re: Cannot connect to localhost

PostPosted: 04. April 2009 19:36
by Wiedmann
not excatly sure what you mean by starting with batchfiles.

There are two batchfiles in the XAMPP directory:
"apache_start.bat" and "mysql_start.bat"

Re: Cannot connect to localhost

PostPosted: 04. April 2009 20:23
by SamLoomis
apache start results in:

Code: Select all
: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
apache could not be started


but how could it be?? didn't find anything occupying (or listening) that port last time I checked from command prompt ...

Re: Cannot connect to localhost

PostPosted: 04. April 2009 20:39
by SamLoomis
also, I tried closing the APACHE service through administratice tools (Vista) and a following error message
popped up (rough translation from finnish)

Code: Select all
'unexpected error, the service could not be shut down
error 1067: process was terminated unexpectedly


but, in the list afterwards it listed as closed.
Anyway, starting it again didn't help either, still can't connect to localhost.

Re: Cannot connect to localhost

PostPosted: 04. April 2009 20:47
by Wiedmann
apache start results in: ": make_sock: could not bind to address 0.0.0.0:80"

also, I tried closing the APACHE service through administratice tools

If you already have a running Apache as service, you can't start it a second time with the batchfile (apache_start.bat).

Re: Cannot connect to localhost

PostPosted: 04. April 2009 21:29
by SamLoomis
Yeah, I know but I despite the error message it was listed as closed.
So either it can't be closed or it was closed and started again, but I still couldn't connect to localhost.

I was thinking about installing Windows XP to work with. It's been 2 days already and in 4 different forums no one seems to have any idea how to fix this!!
There really aren't alternatives for working with XAMPP or WAMP?

Re: Cannot connect to localhost

PostPosted: 04. April 2009 21:35
by Wiedmann
Yeah, I know but I despite the error message it was listed as closed.
So either it can't be closed or it was closed and started again,

With "closed" you mean the service was in the state "stopped"? Well, it makes no sense trying to stop a service which is already in the state "stopped".

Back to your problem:
If both services "Apache2.2" and "MySQL" are stopped (and/or not installed), what's the output from "apache_start.bat" and "mysql_start.bat".


but I still couldn't connect to localhost.

That's another problem. (and not from interest at the moment...)

Re: Cannot connect to localhost

PostPosted: 07. April 2009 10:01
by SamLoomis
well, I got it working with WAMP.
localhost specifically didn't work now either, but I could connect to 127.0.0.1 ...
I'm not sure if that might have been the problem all along!! :roll: