Can't connect to localhost
Posted by: hanibal (---.cncdnh.fast.myfairpoint.net)
Date: December 18, 2012 01:41AM

I've tried many of the fixes listed on this forum, to no avail.

My setup: Win 7, 64bit, Apache 2.2.22, php 5.4.3, Mysql 5.5.24

Icon is green and the little round thing circles until a timeout error.

TIA

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: RiggsFolly (---.as13285.net)
Date: December 18, 2012 10:56PM

Have you looked at your apache error log
your php error log
your windows event log ( with windows event viewer.


There will be something to give you a clue in one of them

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: hanibal (---.cncdnh.fast.myfairpoint.net)
Date: December 19, 2012 12:03PM

Apache error log:
[Mon Dec 10 09:34:12 2012] [notice] Apache/2.2.22 (Win64) PHP/5.4.3 configured -- resuming normal operations
[Mon Dec 10 09:34:12 2012] [notice] Server built: May 13 2012 19:41:17
[Mon Dec 10 09:34:12 2012] [notice] Parent: Created child process 832
[Mon Dec 10 09:34:12 2012] [notice] Child 832: Child process is running
[Mon Dec 10 09:34:12 2012] [notice] Child 832: Acquired the start mutex.
[Mon Dec 10 09:34:12 2012] [notice] Child 832: Starting 64 worker threads.
[Mon Dec 10 09:34:12 2012] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?
[Mon Dec 10 09:34:12 2012] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?
[Mon Dec 10 09:34:19 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Mon Dec 10 09:34:19 2012] [notice] Child 832: Exit event signaled. Child process is ending.
[Mon Dec 10 09:34:20 2012] [notice] Child 832: Released the start mutex
[Mon Dec 10 09:34:21 2012] [notice] Child 832: All worker threads have exited.
[Mon Dec 10 09:34:21 2012] [notice] Child 832: Child process is exiting
[Mon Dec 10 09:34:21 2012] [notice] Parent: Child process exited successfully.
[Mon Dec 10 09:34:21 2012] [notice] Apache/2.2.22 (Win64) PHP/5.4.3 configured -- resuming normal operations
[Mon Dec 10 09:34:21 2012] [notice] Server built: May 13 2012 19:41:17
[Mon Dec 10 09:34:21 2012] [notice] Parent: Created child process 3320
[Mon Dec 10 09:34:21 2012] [notice] Child 3320: Child process is running
[Mon Dec 10 09:34:21 2012] [notice] Child 3320: Acquired the start mutex.
[Mon Dec 10 09:34:21 2012] [notice] Child 3320: Starting 64 worker threads.
[Mon Dec 10 09:34:21 2012] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept:

The php error log is blank and the windows event log I can't make heads or tails of

Thanks

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: RiggsFolly (---.as13285.net)
Date: December 20, 2012 04:05PM

This looks like it might be an IPV4 / IPV6 thing.


Try this:

edit httpd.conf using the links on wampmanager to ensure you edit the correct file.

wampmanager -> Apache -> httpd.conf

Look for a line like this:
Listen 80

Change that to
Listen 0.0.0.0:80

This will make apache only listen on the IPV4 range of addresses



Now edit your hosts file

c:\windows\system32\drivers\etc\hosts ( does not have an extension )


Make sure you have a line in that file like this:

127.0.0.1 localhost


If you also see a line like this
::1 localhost

Comment it out by adding a hash '#' in column one. Like this

#::1 localhost

This tells windows that a domain called localhost exists, and that its ipaddress is 127.0.0.1
It also removes the IPV6 localhost address which is ::1 localhost, which is what is confusing Apache 2.22.22


Now you can either reboot the PC so that windows picks up changes to localhost address.

Or if you are comfortable with the command line you can just do this from a command line that has been started 'Run As Administrator'

>net stop "DNS Client"
>net start "DNS Client"

And then restart Apache from the wampmanager -> Apache -> Service -> Restart Service

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: hanibal (---.cncdnh.fast.myfairpoint.net)
Date: December 20, 2012 04:52PM

Thanks again. Did as instructed but still not connecting. Following is from Apache error log;

C:/wamp/bin/apache/apache2.4.2'
[Thu Dec 20 10:28:04.048638 2012] [mpm_winnt:notice] [pid 2512:tid 384] AH00418: Parent: Created child process 6844
[Thu Dec 20 10:28:04.551667 2012] [mpm_winnt:notice] [pid 6844:tid 280] AH00354: Child: Starting 64 worker threads.
[Thu Dec 20 10:28:04.554667 2012] [mpm_winnt:error] [pid 6844:tid 832] (OS 10038)An operation was attempted on something that is not a socket. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?
[Thu Dec 20 10:28:04.554667 2012] [mpm_winnt:error] [pid 6844:tid 828] (OS 10038)An operation was attempted on something that is not a socket. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?
[Thu Dec 20 10:42:08.752104 2012] [mpm_winnt:notice] [pid 2512:tid 384] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Thu Dec 20 10:42:10.780108 2012] [mpm_winnt:notice] [pid 6844:tid 280] AH00364: Child: All worker threads have exited.
[Thu Dec 20 10:42:10.795708 2012] [mpm_winnt:notice] [pid 2512:tid 384] AH00430: Parent: Child process exited successfully.
[Thu Dec 20 10:45:36.208908 2012] [mpm_winnt:notice] [pid 3380:tid 380] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations
[Thu Dec 20 10:45:36.208908 2012] [mpm_winnt:notice] [pid 3380:tid 380] AH00456: Server built: May 13 2012 19:54:49
[Thu Dec 20 10:45:36.208908 2012] [core:notice] [pid 3380:tid 380] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'
[Thu Dec 20 10:45:36.208908 2012] [mpm_winnt:notice] [pid 3380:tid 380] AH00418: Parent: Created child process 3428
[Thu Dec 20 10:45:36.848509 2012] [mpm_winnt:notice] [pid 3428:tid 272] AH00354: Child: Starting 64 worker threads.
[Thu Dec 20 10:45:36.848509 2012] [mpm_winnt:error] [pid 3428:tid 804] (OS 10038)An operation was attempted on something that is not a socket. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?
[Thu Dec 20 10:46:36.674613 2012] [mpm_winnt:notice] [pid 3380:tid 380] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Thu Dec 20 10:46:38.702617 2012] [mpm_winnt:notice] [pid 3428:tid 272] AH00364: Child: All worker threads have exited.
[Thu Dec 20 10:46:38.749417 2012] [mpm_winnt:notice] [pid 3380:tid 380] AH00430: Parent: Child process exited successfully.
[Thu Dec 20 10:46:39.201818 2012] [mpm_winnt:notice] [pid 892:tid 380] AH00455: Apache/2.4.2 (Win64) PHP/5.4.3 configured -- resuming normal operations
[Thu Dec 20 10:46:39.201818 2012] [mpm_winnt:notice] [pid 892:tid 380] AH00456: Server built: May 13 2012 19:54:49
[Thu Dec 20 10:46:39.201818 2012] [core:notice] [pid 892:tid 380] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.2\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.2'
[Thu Dec 20 10:46:39.201818 2012] [mpm_winnt:notice] [pid 892:tid 380] AH00418: Parent: Created child process 3148
[Thu Dec 20 10:46:39.623019 2012] [mpm_winnt:notice] [pid 3148:tid 272] AH00354: Child: Starting 64 worker threads.
[Thu Dec 20 10:46:39.623019 2012] [mpm_winnt:error] [pid 3148:tid 804] (OS 10038)An operation was attempted on something that is not a socket. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: RiggsFolly (---.as13285.net)
Date: December 20, 2012 05:03PM

You changed your version of Apache after reporting the problem !!!!

That helps ????

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: hanibal (---.cncdnh.fast.myfairpoint.net)
Date: December 20, 2012 05:06PM

I'm sorry. I've been pounding on this for 2 weeks and I'm desparate to get it resolved so I can get back to what I'm trying to use it for, before I forget what that is. My apologies.

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: Michael13 (---.ip.telfort.nl)
Date: December 20, 2012 09:28PM

Same problem. Solved by single or dubbel right clicking on local host button.
Must try different things as closing browser and clean reopen for starting Wamp etc.
Or first open Myadmin then local host.
Looks to me like a bit of unstable programming bug?

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: hanibal (---.cncdnh.fast.myfairpoint.net)
Date: December 20, 2012 11:10PM

It's been resolved with the help of Steven Martin. I wish I could share what he did but I couldn't follow what he was doing. Something about some corruption in Win 7.
I am very grateful to Steven and thank everyone else who tried to help.
Happy Holidays all.

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: GaryLo (---.bankofamerica.com)
Date: December 21, 2012 10:33PM

Hi, It will be very nice if Steven Martin can share the magic how to fix this WIN 7 problem. I'm about to install WAMP in my win7 laptop, but would like to find out any issue and fix before I start.
In the past, I had great problem to config Apache, and PHP on my other Vista desk computer, until recently got it done.
Thanks in advance

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: navaneesh007 (117.235.144.---)
Date: January 05, 2013 08:36AM

please someone help me .. my icon is in orange color and getting a blank page while starting local host

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: January 05, 2013 03:38PM

If wamp icon is orange then Apache has not started. This is usually because some other process has grabbed port 80.

Do
wampmanager -> Apache ->Service->Test port 80.

Whatever is reported in the screen that will be thrown needs to be re-configured to use another port or uninstalled.

What does it report

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: sohailshah (---.143.201.42-static-fiberlink.net.pk)
Date: January 05, 2013 07:20PM

same problem sad smiley on windows 8 please help sad smiley

Options: ReplyQuote
Re: Can't connect to localhost
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: January 06, 2013 02:21PM

sohailshah,

Start a new thread and be specific about your actual problem

Options: ReplyQuote


Sorry, only registered users may post in this forum.