Can't establish connection with Localhost

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

Can't establish connection with Localhost

Postby markiecarter » 22. October 2012 14:01

Hi All - I am new to XXAMP.

I have installed XXAMP Version 1.8.1 for Windows.
I am using XXAMP Control Panel 3.1.0.3.1.0

When I type in address:
http://localhost/
in Firefox 10.0.2

I get the following error message:

“Unable to connect

Firefox can't establish a connection to the server at localhost.

The site could be temporarily unavailable or too busy. Try again in a few
moments.
If you are unable to load any pages, check your computer's network
connection.
If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.”

Other details:
Windows XP
Home Edition
Version 2012
Service Pack 3

I’ve turned off the Firewall using command Firewall.cpl and selecting OFF under General settings.

When I Ping localhost, I get:

“Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, lost = 0, (0% loss),
Approx round trip timesin milli-seconds:
Min = 0ms, Max = 0ms, Avg = 0ms”

I’ve installed Microsoft Visual C++ 2008

I have Avira anti-virus software running, but have disabled this.

What am I doing wrong? Thanks in advance.

Mark
markiecarter
 
Posts: 8
Joined: 22. October 2012 13:59
Operating System: Windows XP SP3

Re: Can't establish connection with Localhost

Postby markiecarter » 24. October 2012 12:00

I am still trying to work this one out...

I have been on the internet looking for answers. Here is what I have tried so far:

- Using IE instead of Firefox (no difference)
- Using 127.0.0.1 instead of localhost (no difference)
- Using cmd>netstat - o to see which ports are being used. The only ones are 1062 and 1063 used by firefox.exe
- Disabling IIS in Add/Remove Windows Components. Actually I couldn't find IIS in the list, but I disabled everything non-essential anyway (no difference)

Please - anyone got any bright ideas?
Mark
markiecarter
 
Posts: 8
Joined: 22. October 2012 13:59
Operating System: Windows XP SP3

Re: Can't establish connection with Localhost

Postby Altrea » 24. October 2012 16:31

Code: Select all
netstat -ano|find ":80"
?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Can't establish connection with Localhost

Postby markiecarter » 24. October 2012 21:13

TCP 192.168.0.3:1105 199.7.54.72:80 TIME_WAIT 0
TCP 192.168.0.3:1109 74.125.132.94:80 TIME_WAIT 0
TCP 192.168.0.3:1148 23.65.22.27:80 TIME_WAIT 0
TCP 192.168.0.3:1153 23.65.22.136:80 TIME_WAIT 0
TCP 192.168.0.3:1157 23.65.22.11:80 TIME_WAIT 0
TCP 192.168.0.3:1166 67.195.187.147:80 TIME_WAIT 0
TCP 192.168.0.3:1171 173.194.34.78:80 ESTABLISHED 2792
markiecarter
 
Posts: 8
Joined: 22. October 2012 13:59
Operating System: Windows XP SP3

Re: Can't establish connection with Localhost

Postby Altrea » 25. October 2012 03:37

There is no process started listening on port 80.
What happens if you click on the Apache Start Button in the XAMPP control panel?
What is the output in the XAMPP control panel status bar?
What is the content of the \xampp\apache\logs\error.log?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Can't establish connection with Localhost

Postby markiecarter » 25. October 2012 17:05

Ok - I now have localhost working, and I get the XXAMP for Windows start screen.

But now when I click on phpMyAdmin in the Tools menu in the left-hand side I get an error screen, which says:

"
My SQL said
#2002 - No connection could be made because the target machine actively refused it.
The server is not responding (or the local server's socket is not correctly configured).
"

In answer to your previous question, this is what is in the error.log:
"
[Thu Oct 25 16:52:47.364088 2012] [ssl:warn] [pid 3368:tid 192] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Oct 25 16:52:52.010769 2012] [mpm_winnt:notice] [pid 3368:tid 192] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Thu Oct 25 16:52:52.060841 2012] [mpm_winnt:notice] [pid 3368:tid 192] AH00456: Server built: Aug 18 2012 12:41:37
[Thu Oct 25 16:52:52.060841 2012] [core:notice] [pid 3368:tid 192] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Oct 25 16:52:52.191028 2012] [mpm_winnt:notice] [pid 3368:tid 192] AH00418: Parent: Created child process 632
[Thu Oct 25 16:52:57.749020 2012] [ssl:warn] [pid 632:tid 1880] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Oct 25 16:52:58.169625 2012] [mpm_winnt:notice] [pid 632:tid 1880] AH00354: Child: Starting 150 worker threads.
"

Your help as always is much appreciated. Mark
markiecarter
 
Posts: 8
Joined: 22. October 2012 13:59
Operating System: Windows XP SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 101 guests