View previous topic :: View next topic |
Author |
Message |
benjamin.choi n00b
Joined: 16 Dec 2004 Posts: 5
|
Posted: Thu Dec 16, 2004 12:56 pm Post subject: Apache2 fails to start |
|
|
Ever since I mistakenly used the Gnome network configuration GUI to add an Ethernet device "eth1" (later my computer crashed because of a co-worker's practical joke of infinitely forking processes, though I'm not sure of the effects of an unclean shutdown), I've been unable to start Apache2 successfully due to its believing that I have an "eth1" device. Any idea how I can solve this problem?
# /etc/init.d/apache2 start
* Please make sure that /etc/conf.d/net has $ifconfig_eth1 set
* (or $iface_eth1 for old-style configuration)
* Please make sure that /etc/conf.d/net has $ifconfig_eth1 set
* (or $iface_eth1 for old-style configuration)
* ERROR: Problem starting needed services.
* "netmount" was not started.
* ERROR: Problem starting needed services.
* "apache2" was not started.
I tried looking inside the Apache configuration files but the problem doesn't seem to lie there.
The same problem occurs with sshd; it aborts with the same error message.
Your help would be appreciated greatly. |
|
Back to top |
|
|
idl Retired Dev
Joined: 24 Dec 2002 Posts: 1728 Location: Nottingham, UK
|
Posted: Thu Dec 16, 2004 2:28 pm Post subject: |
|
|
the Apache2 init script has a depend on 'netmount' which has a depend on 'net' which means all network devices must be started before apache2 can start. The gnome tool most likely created and /etc/init.d/net.eth1 file, you don't have any configuration for that device in /etc/conf.d/net and therefore init refuses to start apache2. Simply removing /etc/init.d/net.eth1 should work. |
|
Back to top |
|
|
benjamin.choi n00b
Joined: 16 Dec 2004 Posts: 5
|
Posted: Thu Dec 16, 2004 3:45 pm Post subject: |
|
|
port001 wrote: | the Apache2 init script has a depend on 'netmount' which has a depend on 'net' which means all network devices must be started before apache2 can start. The gnome tool most likely created and /etc/init.d/net.eth1 file, you don't have any configuration for that device in /etc/conf.d/net and therefore init refuses to start apache2. Simply removing /etc/init.d/net.eth1 should work. |
That did the trick, thanks
However now at bootup I get a warning (non-fatal) about net.eth1 being not found. |
|
Back to top |
|
|
idl Retired Dev
Joined: 24 Dec 2002 Posts: 1728 Location: Nottingham, UK
|
Posted: Thu Dec 16, 2004 3:49 pm Post subject: |
|
|
benjamin.choi wrote: |
That did the trick, thanks
However now at bootup I get a warning (non-fatal) about net.eth1 being not found. |
Oops, I forgot to tell you to run (as root) Code: | rc-update del net.eth1 default |
|
|
Back to top |
|
|
|