Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 fails to start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
benjamin.choi
n00b
n00b


Joined: 16 Dec 2004
Posts: 5

PostPosted: Thu Dec 16, 2004 12:56 pm    Post subject: Apache2 fails to start Reply with quote

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
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Thu Dec 16, 2004 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
benjamin.choi
n00b
n00b


Joined: 16 Dec 2004
Posts: 5

PostPosted: Thu Dec 16, 2004 3:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Thu Dec 16, 2004 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum