Can't Connect to Localhost

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

Can't Connect to Localhost

Postby saki66 » 26. August 2010 11:04

Hi everyone,

I'm aware that this topic has been discussed before but somehow I'm still lost, none of the suggested fixes work.

My system:
Windows XP (automatic updates enabled)
Firewall: ZoneAlarm
Antivirus: Avira Antivir
Windows Firewall disabled

The story so far:
-Have been using Xampp 1.6.4 for quite a while and never a single issue with last usage in April10
- Tried to use it yesterday and it didn't work, no connection to localhost (control panel says Apache is running). Tried FF, IE8 + Safari. IE8 + Safari display server not - responing after some time, FF is trying for ages without any message.
- Deleted xampp and installed new xampp 1.7.3 with the same effect
- I noticed that CPU was 100% so activated Win32DisableAcceptEx as suggested (CPU usage down) but still no connect
- Disabled Zonealarm and AntiVir and tried again (never an issue before), no connection
- Tried 127.0.0.1 same effect
- Just for testing I blocked port 80 with skype and started Apache and it didn't start as it should
- MySQL server is working and I can use it with other Tools

Any ideas? Please note I'm not too familiar with the internal workings of computers or were to find all the error logs etc.

Cheers

Lots of interest so far but alas no fix. Had a look through the system and here is some more information.

Port Check says all listed ports are free

The error log:
Tue Sep 14 21:48:20 2010] [notice] Disabled use of AcceptEx() WinSock2 API
[Tue Sep 14 21:48:39 2010] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 14 21:48:39 2010] [notice] Digest: done
[Tue Sep 14 21:48:40 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Sep 14 21:48:40 2010] [notice] Server built: Nov 11 2009 14:29:03
[Tue Sep 14 21:48:40 2010] [notice] Parent: Created child process 1480
[Tue Sep 14 21:48:40 2010] [notice] Disabled use of AcceptEx() WinSock2 API
[Tue Sep 14 21:48:44 2010] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 14 21:48:44 2010] [notice] Digest: done
[Tue Sep 14 21:48:46 2010] [notice] Child 1480: Child process is running
[Tue Sep 14 21:48:46 2010] [notice] Child 1480: Acquired the start mutex.
[Tue Sep 14 21:48:46 2010] [notice] Child 1480: Starting 150 worker threads.
[Tue Sep 14 21:48:46 2010] [notice] Child 1480: Listening on port 443.
[Tue Sep 14 21:48:46 2010] [notice] Child 1480: Listening on port 80.

Control Panel Display
Apache+MySql running (green)
Message:
XAMPP for Windows Version 1.7.3
Windows 5.1 Build 2600 Platform 2 Service Pack 3
Current Directory: C:\xampp
Status Check OK
Busy...
Apache started
Busy...
MySQL started

Still I can't connect/access any local webpages using either localhost (http://localhost/) or 127.0.0.1

Please help. (Antworten auch gerne in deutsch. Kann sie dann spaeter fuer den 'internationalen' Gebrauch uebersetzen und einstellen)

Cheers
Cheers
saki66
saki66
 
Posts: 4
Joined: 26. August 2010 10:07
Location: Australia

Re: Can't Connect to Localhost

Postby saki66 » 23. September 2010 12:13

Hi Mohsince,

thank for the tip. I checked, Port 80 is free, no skype no IIS. I reckon the 'busy...' part comes during start up and the green 'running' light comes on afterwards. Also I did a check the other way round, kept port 80 busy with skype and tried to start Apache then which didn't work (expected) so port is free.
Cheers
saki66
saki66
 
Posts: 4
Joined: 26. August 2010 10:07
Location: Australia

Re: Can't Connect to Localhost

Postby Excel Solutions » 25. September 2010 10:33

I have the same problem mine is busy and port is free too :roll:
Really is frustrating as I cant get on with doing the jobs I need to
Excel Solutions
 
Posts: 1
Joined: 25. September 2010 10:20

Re: Can't Connect to Localhost

Postby JonB » 25. September 2010 15:08

Other than the first post in this thread, no one has posted adequate information for anyone to be able to help them.

Things helpful minds need to know -

The Windows version, the XAMPP version, where XAMMP is installed - for starters

The EXACT error that occurs -

The contents of the Apache error log - \xampp\apache\logs\errro.log

Hints from earlier excursions - have you ever installed Apache standalone on this machine?

You may have a corrupt TCP/IP stack.

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Can't Connect to Localhost

Postby saki66 » 27. September 2010 11:00

Hi JonB,

thanks for the tip. On your suggestion I did a bit of work in that direction but I'm not sure what to look for or whether I've already covered the TCP/IP stack part.

Here is what I did (in that order):
- I reset TCP/IP with "netsh int ip reset..." as per MS support webpage instruction. Here is the resetlog:
reset SYSTEM\CurrentControlSet\Services\Dhcp\Parameters\Options\15\RegLocation
old REG_MULTI_SZ =
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\?\DhcpDomain
SYSTEM\CurrentControlSet\Services\TcpIp\Parameters\DhcpDomain

reset SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{6A23B76C-1CBB-4CC3-A348-AB54D302CD40}\NameServerList
old REG_MULTI_SZ =
<empty>

added SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{6A23B76C-1CBB-4CC3-A348-AB54D302CD40}\NetbiosOptions
added SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{6AC42B6D-73B1-44AD-BC0D-FFA91638BC28}\NetbiosOptions
reset SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{C9207274-A012-47B7-BC5F-7FC132006ACE}\NameServerList
old REG_MULTI_SZ =
<empty>

added SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{C9207274-A012-47B7-BC5F-7FC132006ACE}\NetbiosOptions
added SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{E80F175C-076B-4561-B87D-E4373559656C}\NetbiosOptions
deleted SYSTEM\CurrentControlSet\Services\Netbt\Parameters\EnableLmhosts
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{1008E9B4-6778-472F-8126-C810407BBCF8}\AddressType
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{1008E9B4-6778-472F-8126-C810407BBCF8}\DisableDynamicUpdate
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{1008E9B4-6778-472F-8126-C810407BBCF8}\RawIpAllowedProtocols
old REG_MULTI_SZ =
0

reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{1008E9B4-6778-472F-8126-C810407BBCF8}\TcpAllowedPorts
old REG_MULTI_SZ =
0

reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{1008E9B4-6778-472F-8126-C810407BBCF8}\UdpAllowedPorts
old REG_MULTI_SZ =
0

added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{13E557A5-E247-4C8F-B253-B93B5187F288}\DisableDynamicUpdate
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{13E557A5-E247-4C8F-B253-B93B5187F288}\IpAutoconfigurationAddress
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{13E557A5-E247-4C8F-B253-B93B5187F288}\IpAutoconfigurationMask
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{13E557A5-E247-4C8F-B253-B93B5187F288}\IpAutoconfigurationSeed
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{13E557A5-E247-4C8F-B253-B93B5187F288}\RawIpAllowedProtocols
old REG_MULTI_SZ =
0

reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{13E557A5-E247-4C8F-B253-B93B5187F288}\TcpAllowedPorts
old REG_MULTI_SZ =
0

reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{13E557A5-E247-4C8F-B253-B93B5187F288}\UdpAllowedPorts
old REG_MULTI_SZ =
0

deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{6A23B76C-1CBB-4CC3-A348-AB54D302CD40}\NameServer
added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{782B66D9-D4DE-430B-B4B8-D242205A6231}\DisableDynamicUpdate
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{782B66D9-D4DE-430B-B4B8-D242205A6231}\IpAutoconfigurationAddress
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{782B66D9-D4DE-430B-B4B8-D242205A6231}\IpAutoconfigurationMask
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{782B66D9-D4DE-430B-B4B8-D242205A6231}\IpAutoconfigurationSeed
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{782B66D9-D4DE-430B-B4B8-D242205A6231}\RawIpAllowedProtocols
old REG_MULTI_SZ =
0

reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{782B66D9-D4DE-430B-B4B8-D242205A6231}\TcpAllowedPorts
old REG_MULTI_SZ =
0

reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{782B66D9-D4DE-430B-B4B8-D242205A6231}\UdpAllowedPorts
old REG_MULTI_SZ =
0

added SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{938F7948-F1FE-41F0-BB35-0A09FB338233}\DisableDynamicUpdate
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{938F7948-F1FE-41F0-BB35-0A09FB338233}\IpAutoconfigurationAddress
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{938F7948-F1FE-41F0-BB35-0A09FB338233}\IpAutoconfigurationMask
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{938F7948-F1FE-41F0-BB35-0A09FB338233}\IpAutoconfigurationSeed
reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{938F7948-F1FE-41F0-BB35-0A09FB338233}\RawIpAllowedProtocols
old REG_MULTI_SZ =
0

reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{938F7948-F1FE-41F0-BB35-0A09FB338233}\TcpAllowedPorts
old REG_MULTI_SZ =
0

reset SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{938F7948-F1FE-41F0-BB35-0A09FB338233}\UdpAllowedPorts
old REG_MULTI_SZ =
0

deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{C9207274-A012-47B7-BC5F-7FC132006ACE}\NameServer
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DontAddDefaultGatewayDefault
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableIcmpRedirect
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableSecurityFilters
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\TcpWindowSize
deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\UseDomainNameDevolution
reset Linkage\UpperBind for S117CR\{D72625B3-537B-491F-9729-53097F68E4BB}\3573920239250350_08. bad value was:
REG_MULTI_SZ =
PSched

reset Linkage\UpperBind for PCI\VEN_168C&DEV_001A&SUBSYS_7094144F&REV_01\4&FCF0450&0&10A4. bad value was:
REG_MULTI_SZ =
PSched

reset Linkage\UpperBind for PCI\VEN_10EC&DEV_8139&SUBSYS_FF001179&REV_10\4&FCF0450&0&30A4. bad value was:
REG_MULTI_SZ =
PSched

reset Linkage\UpperBind for ROOT\MS_NDISWANIP\0000. bad value was:
REG_MULTI_SZ =
PSched

<completed>

- Ran MS network diagnostics: system passed the test but for the wireless adapter which I expected as the wireless adapter has been non functional since I dismantled the entire laptop to replace the fan
- Ran ping for IP 127.0.0.1 and the laptop IP: both reported no losses and all packets went through

All Browsers still can't connect to localhost when Apache is running. As an afterthought, the progress bar for FF sometimes goes up to approx. 95%, then stalls ( system tries to load the page but nothing more is happening). Does that mean, indicate anything?

Any suggestions?
Cheers
saki66
saki66
 
Posts: 4
Joined: 26. August 2010 10:07
Location: Australia

Re: Can't Connect to Localhost

Postby JonB » 27. September 2010 13:45

@ saki66

My bad on the TCP/IP stack - there is a 'quick-fixer' for it, and I did not give a link - but you did the right thing, and we have dismissed that as a possibilty.

First - have you tried using 127.0.0.1 as the address in your browser, if you haven't tinkered with XAMPP - it should work on EITHER 127.0.0.1 or localhost. If it works on 127.0.0.1 but not as localhost see the next tiem.

Hint: Check your hosts file (no extension) its in c:\windows\system32\drivers\etc .

make sure there is a line like this:
Code: Select all
localhost       127.0.0.1


I'm busy organizng all my posts into a refernce system, and somewhere in all of it I proabably have a complete diagnostic for localhost - it just needs to be organized. :shock:

Good Luck
:cool:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Can't Connect to Localhost

Postby Ronneyy » 27. September 2010 16:37

Presently I can at least connect to smtp on 127.0.0.1 when my dial-up connection is up. Pop3 never works because qpopper's authentication is not working on Panther
Ronneyy
 
Posts: 3
Joined: 27. September 2010 16:34

Re: Can't Connect to Localhost

Postby saki66 » 28. September 2010 08:53

Hi JonB,

Did some work on your suggestions here are the results:
- The entry "127.0.0.1 localhost" is there
- I tried using hhtp://127.0.0.1, same as always
- Just to make sure I haven't accidentally tinkered with xampp I deleted everything and installed it afresh (complete with new download).

Alas all browsers still can't connect
Cheers
saki66
saki66
 
Posts: 4
Joined: 26. August 2010 10:07
Location: Australia

Re: Can't Connect to Localhost

Postby JonB » 20. October 2010 14:47

Read this MySQL documentation, perhaos it will solve your issue.

http://dev.mysql.com/doc/refman/5.1/en/ ... on-windows

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: hthnightwolf and 64 guests