Localhost not working
Posted by: sunny.sk (120.56.177.---)
Date: July 04, 2011 11:17PM

Hello,

I am new to wamp I have just installed on my laptop having windows xp sp2 , after installation it shows that the new wamp is installed successfully and it also shows me the green W sign.

After I mouse over it show that the wampserver is online but, when i try to open up my local host with firefox as default browser it keeps on searching for local host but it won't work?

Can you guys help me what seems to be the problem is?

i have also copy pasted my error log for appache:

=========================================================
[Sun Jul 03 12:21:49 2011] [warn] pid file C:/wamp/bin/apache/Apache2.2.17/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 03 12:21:49 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Sun Jul 03 12:21:49 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Jul 03 12:21:49 2011] [notice] Parent: Created child process 4676
[Sun Jul 03 12:21:50 2011] [notice] Child 4676: Child process is running
[Sun Jul 03 12:21:50 2011] [notice] Child 4676: Acquired the start mutex.
[Sun Jul 03 12:21:50 2011] [notice] Child 4676: Starting 64 worker threads.
[Sun Jul 03 12:21:50 2011] [notice] Child 4676: Starting thread to listen on port 80.
[Sun Jul 03 12:22:05 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Jul 03 12:22:05 2011] [notice] Child 4676: Exit event signaled. Child process is ending.
[Sun Jul 03 12:22:06 2011] [notice] Child 4676: Released the start mutex
[Sun Jul 03 12:22:07 2011] [notice] Child 4676: All worker threads have exited.
[Sun Jul 03 12:22:07 2011] [notice] Child 4676: Child process is exiting
[Sun Jul 03 12:22:08 2011] [notice] Parent: Child process exited successfully.
[Sun Jul 03 12:22:09 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Sun Jul 03 12:22:09 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Jul 03 12:22:09 2011] [notice] Parent: Created child process 5024
[Sun Jul 03 12:22:10 2011] [notice] Child 5024: Child process is running
[Sun Jul 03 12:22:10 2011] [notice] Child 5024: Acquired the start mutex.
[Sun Jul 03 12:22:10 2011] [notice] Child 5024: Starting 64 worker threads.
[Sun Jul 03 12:22:10 2011] [notice] Child 5024: Starting thread to listen on port 80.
[Sun Jul 03 12:22:16 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Jul 03 12:22:16 2011] [notice] Child 5024: Exit event signaled. Child process is ending.
[Sun Jul 03 12:22:17 2011] [notice] Child 5024: Released the start mutex
[Sun Jul 03 12:22:18 2011] [notice] Child 5024: All worker threads have exited.
[Sun Jul 03 12:22:18 2011] [notice] Child 5024: Child process is exiting
[Sun Jul 03 12:22:18 2011] [notice] Parent: Child process exited successfully.
[Sun Jul 03 12:22:19 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Sun Jul 03 12:22:19 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Jul 03 12:22:19 2011] [notice] Parent: Created child process 5864
[Sun Jul 03 12:22:19 2011] [notice] Child 5864: Child process is running
[Sun Jul 03 12:22:19 2011] [notice] Child 5864: Acquired the start mutex.
[Sun Jul 03 12:22:19 2011] [notice] Child 5864: Starting 64 worker threads.
[Sun Jul 03 12:22:19 2011] [notice] Child 5864: Starting thread to listen on port 80.
[Mon Jul 04 20:13:33 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Mon Jul 04 20:13:33 2011] [notice] Child 5864: Exit event signaled. Child process is ending.
[Mon Jul 04 20:13:34 2011] [notice] Child 5864: Released the start mutex
[Mon Jul 04 20:13:35 2011] [notice] Child 5864: All worker threads have exited.
[Mon Jul 04 20:13:35 2011] [notice] Child 5864: Child process is exiting
[Mon Jul 04 20:13:35 2011] [notice] Parent: Child process exited successfully.
[Tue Jul 05 01:21:36 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Tue Jul 05 01:21:36 2011] [notice] Server built: Oct 18 2010 01:58:12
[Tue Jul 05 01:21:36 2011] [notice] Parent: Created child process 5664
[Tue Jul 05 01:21:37 2011] [notice] Child 5664: Child process is running
[Tue Jul 05 01:21:37 2011] [notice] Child 5664: Acquired the start mutex.
[Tue Jul 05 01:21:37 2011] [notice] Child 5664: Starting 64 worker threads.
[Tue Jul 05 01:21:37 2011] [notice] Child 5664: Starting thread to listen on port 80.
[Tue Jul 05 01:49:09 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jul 05 01:49:09 2011] [notice] Child 5664: Exit event signaled. Child process is ending.
[Tue Jul 05 01:49:10 2011] [notice] Child 5664: Released the start mutex
[Tue Jul 05 01:49:11 2011] [notice] Child 5664: All worker threads have exited.
[Tue Jul 05 01:49:11 2011] [notice] Child 5664: Child process is exiting
[Tue Jul 05 01:49:11 2011] [notice] Parent: Child process exited successfully.
[Tue Jul 05 01:49:12 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Tue Jul 05 01:49:12 2011] [notice] Server built: Oct 18 2010 01:58:12
[Tue Jul 05 01:49:12 2011] [notice] Parent: Created child process 3944
[Tue Jul 05 01:49:12 2011] [notice] Child 3944: Child process is running
[Tue Jul 05 01:49:12 2011] [notice] Child 3944: Acquired the start mutex.
[Tue Jul 05 01:49:12 2011] [notice] Child 3944: Starting 64 worker threads.
[Tue Jul 05 01:49:12 2011] [notice] Child 3944: Starting thread to listen on port 80.
[Tue Jul 05 01:49:15 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jul 05 01:49:15 2011] [notice] Child 3944: Exit event signaled. Child process is ending.
[Tue Jul 05 01:49:16 2011] [notice] Child 3944: Released the start mutex
[Tue Jul 05 01:49:17 2011] [notice] Child 3944: All worker threads have exited.
[Tue Jul 05 01:49:17 2011] [notice] Child 3944: Child process is exiting
[Tue Jul 05 01:49:17 2011] [notice] Parent: Child process exited successfully.
[Tue Jul 05 01:49:18 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Tue Jul 05 01:49:18 2011] [notice] Server built: Oct 18 2010 01:58:12
[Tue Jul 05 01:49:18 2011] [notice] Parent: Created child process 2820
[Tue Jul 05 01:49:19 2011] [notice] Child 2820: Child process is running
[Tue Jul 05 01:49:19 2011] [notice] Child 2820: Acquired the start mutex.
[Tue Jul 05 01:49:19 2011] [notice] Child 2820: Starting 64 worker threads.
[Tue Jul 05 01:49:19 2011] [notice] Child 2820: Starting thread to listen on port 80.
[Tue Jul 05 01:54:59 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jul 05 01:54:59 2011] [notice] Child 2820: Exit event signaled. Child process is ending.
[Tue Jul 05 01:55:00 2011] [notice] Child 2820: Released the start mutex
[Tue Jul 05 01:55:01 2011] [notice] Child 2820: All worker threads have exited.
[Tue Jul 05 01:55:01 2011] [notice] Child 2820: Child process is exiting
[Tue Jul 05 01:55:01 2011] [notice] Parent: Child process exited successfully.
[Tue Jul 05 01:55:05 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Tue Jul 05 01:55:05 2011] [notice] Server built: Oct 18 2010 01:58:12
[Tue Jul 05 01:55:05 2011] [notice] Parent: Created child process 3108
[Tue Jul 05 01:55:05 2011] [notice] Child 3108: Child process is running
[Tue Jul 05 01:55:05 2011] [notice] Child 3108: Acquired the start mutex.
[Tue Jul 05 01:55:05 2011] [notice] Child 3108: Starting 64 worker threads.
[Tue Jul 05 01:55:05 2011] [notice] Child 3108: Starting thread to listen on port 80.
[Tue Jul 05 02:12:30 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jul 05 02:12:30 2011] [notice] Child 3108: Exit event signaled. Child process is ending.
[Tue Jul 05 02:12:31 2011] [notice] Child 3108: Released the start mutex
[Tue Jul 05 02:12:32 2011] [notice] Child 3108: All worker threads have exited.
[Tue Jul 05 02:12:32 2011] [notice] Child 3108: Child process is exiting
[Tue Jul 05 02:12:32 2011] [notice] Parent: Child process exited successfully.
[Tue Jul 05 02:12:49 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Tue Jul 05 02:12:49 2011] [notice] Server built: Oct 18 2010 01:58:12
[Tue Jul 05 02:12:49 2011] [notice] Parent: Created child process 4232
[Tue Jul 05 02:12:50 2011] [notice] Child 4232: Child process is running
[Tue Jul 05 02:12:50 2011] [notice] Child 4232: Acquired the start mutex.
[Tue Jul 05 02:12:50 2011] [notice] Child 4232: Starting 64 worker threads.
[Tue Jul 05 02:12:50 2011] [notice] Child 4232: Starting thread to listen on port 80.
[Tue Jul 05 02:43:32 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jul 05 02:43:32 2011] [notice] Child 4232: Exit event signaled. Child process is ending.
[Tue Jul 05 02:43:33 2011] [notice] Child 4232: Released the start mutex
[Tue Jul 05 02:43:34 2011] [notice] Child 4232: All worker threads have exited.
[Tue Jul 05 02:43:34 2011] [notice] Child 4232: Child process is exiting
[Tue Jul 05 02:43:35 2011] [notice] Parent: Child process exited successfully.
[Tue Jul 05 02:44:58 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.5 configured -- resuming normal operations
[Tue Jul 05 02:44:58 2011] [notice] Server built: Oct 18 2010 01:58:12
[Tue Jul 05 02:44:58 2011] [notice] Parent: Created child process 2612
[Tue Jul 05 02:44:58 2011] [notice] Child 2612: Child process is running
[Tue Jul 05 02:44:58 2011] [notice] Child 2612: Acquired the start mutex.
[Tue Jul 05 02:44:58 2011] [notice] Child 2612: Starting 64 worker threads.
[Tue Jul 05 02:44:58 2011] [notice] Child 2612: Starting thread to listen on port 80.
=========================================================

Please let me know.

Thanks,

Sunny

Options: ReplyQuote
Re: Localhost not working
Posted by: yfastud (Moderator)
Date: July 06, 2011 02:13AM

In folder C:\WINDOWS\System32\drivers\etc, open file hosts and delete anything in this file and have only this line below and nothing else

127.0.0.1 localhost

Then restart wamp

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Localhost not working
Posted by: jprieto (---.hsd1.fl.comcast.net)
Date: July 06, 2011 03:06AM

i do not see the file "host" in that directory

there are many files in it

one i took notice of is "http.sys" which does not open in wordpad

can you please explain it further please

Options: ReplyQuote
Re: Localhost not working
Posted by: jprieto (---.hsd1.fl.comcast.net)
Date: July 06, 2011 03:37AM

i had this problem, and here is how i solved it
My pc has windows 7 (may also work in vista)

click on start
click on all programs
click on accessories
right-click on wordpad
click on "run as administrator"
click open
navigate to c\windows\system32\drivers\etc\

and open the file named "hosts"

erase everything in it
and just write the following line

127.0.0.1 localhost


make sure there is at least 7 spaces before the word localhost

in wordpad click on save

thats it

enjoy!!

let me know if this helped

thanks

reach1million.com


ps: before you follow this instruction, perhaps you may want to highlight all the text in the "hosts" file and save it in a word processor for future reference. Personally i do not see any reason for keeping a copy of the original ..... but making copies of files before modifying is a good advise.

i tried using NOTEPAD but it did not work .... with WORDPAD it worked perfect

God bless you al

Options: ReplyQuote


Sorry, only registered users may post in this forum.