Cannot connect to localhost

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Cannot connect to localhost

Postby SamLoomis » 04. April 2009 16:07

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?
SamLoomis
 
Posts: 7
Joined: 04. April 2009 15:54

Re: Cannot connect to localhost

Postby Wiedmann » 04. April 2009 16:44

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?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Cannot connect to localhost

Postby SamLoomis » 04. April 2009 16:49

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.
SamLoomis
 
Posts: 7
Joined: 04. April 2009 15:54

Re: Cannot connect to localhost

Postby Wiedmann » 04. April 2009 16:52

I tried that too

You have tried what?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Cannot connect to localhost

Postby SamLoomis » 04. April 2009 18:27

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. =)
SamLoomis
 
Posts: 7
Joined: 04. April 2009 15:54

Re: Cannot connect to localhost

Postby Wiedmann » 04. April 2009 19:36

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"
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Cannot connect to localhost

Postby SamLoomis » 04. April 2009 20:23

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 ...
SamLoomis
 
Posts: 7
Joined: 04. April 2009 15:54

Re: Cannot connect to localhost

Postby SamLoomis » 04. April 2009 20:39

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.
SamLoomis
 
Posts: 7
Joined: 04. April 2009 15:54

Re: Cannot connect to localhost

Postby Wiedmann » 04. April 2009 20:47

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).
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Cannot connect to localhost

Postby SamLoomis » 04. April 2009 21:29

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?
SamLoomis
 
Posts: 7
Joined: 04. April 2009 15:54

Re: Cannot connect to localhost

Postby Wiedmann » 04. April 2009 21:35

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...)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Cannot connect to localhost

Postby SamLoomis » 07. April 2009 10:01

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:
SamLoomis
 
Posts: 7
Joined: 04. April 2009 15:54


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 120 guests