Jump to content

Apache won't start when not connected to home network


johnnc

Recommended Posts

Hi All,

 

I am fairly new to Apache. I have it installed and currently running on my Vista Ultimate Laptop. When I am connected to my home network, the Apache service starts and everything works just fine. If I take my laptop to another location, the Apache service will not start.

 

The second issue I have is regarding the way I access my Apache server via the laptop. Since installation and configuration I have been able to hit my server using http://localhost/site. I haven't made any changes and I can no longer hit localhost. I have to specifically call the IP address of the laptop.

 

I appreciate any help with these two issues.

 

thanks in advance,

 

John

Link to comment
Share on other sites

As for your second issue, Go to Start > Programs > Accessories. Right click on Notepad and select Run as Administrator (this is required in vista to edit the hosts file), Now go to File > Open. In the Filename box type in C:\Windows\System32\drivers\etc\hosts

 

See if you have the following line in there

127.0.0.1       localhost

 

If you can find it, add it. Save the file and try http://localhost/ again.

 

When I am connected to my home network, the Apache service starts and everything works just fine. If I take my laptop to another location, the Apache service will not start.

When this happens. Have a look at your Apache error log.

Link to comment
Share on other sites

I restarted my laptop with the network cable unplugged. Apache runs as a service and starts automatically on startup. The service did not start. I looked at the error log and there isn't an entry. I then tried to start the process manually. When that failed I looked at the error log again, and still, no entry.

 

I plugged the network cable in and hit Start and the service started immediately. Here is the resulting entries in my error log:

 

PHP Warning:  Module 'mysql' already loaded in Unknown on line 0

[Mon Mar 16 13:35:47 2009] [notice] Child 6004: Child process is running

[Mon Mar 16 13:35:47 2009] [notice] Child 6004: Acquired the start mutex.

[Mon Mar 16 13:35:47 2009] [notice] Child 6004: Starting 64 worker threads.

[Mon Mar 16 13:35:47 2009] [notice] Child 6004: Starting thread to listen on port 80.

[Mon Mar 16 13:35:47 2009] [notice] Child 6004: Starting thread to listen on port 80.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.