Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache and mysql will not start without net.eth0 [solved]
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
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1281
Location: Tri-Cities, WA USA

PostPosted: Tue Nov 10, 2009 1:26 pm    Post subject: apache and mysql will not start without net.eth0 [solved] Reply with quote

I'd like to run apache and mysql along with php to run without a network connection so I can code in php offline.

I can't recall what I have to turn off for apache2 and mysql when I don't have eth0 up.

Thanks,
cwc

edit /etc/init.d/apache2 & /etc/init.d/mysql
_________________
Without diversity there can be no evolution:)


Last edited by cwc on Wed Nov 11, 2009 4:55 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue Nov 10, 2009 7:00 pm    Post subject: Reply with quote

/etc/init.d/apache2 contains
Quote:

depend() {
need net
use mysql dns logger netmount postgresql
after sshd
}

edit to
Quote:
depend() {
#need net
use mysql dns logger netmount postgresql
after sshd
}

may get what you want
Back to top
View user's profile Send private message
andreas_st
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2007
Posts: 112
Location: 48N 16E

PostPosted: Tue Nov 10, 2009 8:27 pm    Post subject: Reply with quote

You might have to edit your apache configuration too if you have an IP address in a Listen statement.
_________________
Registered Linux user #62727
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1281
Location: Tri-Cities, WA USA

PostPosted: Wed Nov 11, 2009 4:45 am    Post subject: Reply with quote

DONAHUE wrote:
/etc/init.d/apache2 contains
Quote:

depend() {
need net
use mysql dns logger netmount postgresql
after sshd
}

edit to
Quote:
depend() {
#need net
use mysql dns logger netmount postgresql
after sshd
}

may get what you want


thanks for the tip. I also had to disable netmount postgresql dns

this is the part of the script that worked:

depend() {
#need net netmount postgresql dns
use mysql logger
after sshd
}

thanks again!
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1281
Location: Tri-Cities, WA USA

PostPosted: Wed Nov 11, 2009 4:46 am    Post subject: Reply with quote

andreas_st wrote:
You might have to edit your apache configuration too if you have an IP address in a Listen statement.


where would this be located? httpd.conf?
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
CooDy
n00b
n00b


Joined: 26 Aug 2004
Posts: 36
Location: Slovenia

PostPosted: Wed Nov 11, 2009 7:08 am    Post subject: Reply with quote

/etc/apachce2/httpd.conf

or if you use the default_vhost statement in /etc/conf.d/apache2 you could also have it in /etc/apache2/modules/00_default_vhost
_________________
If you ask the kind people on the forum about a problem, be kind enough to post a solution if you figure it out on your own.
Back to top
View user's profile Send private message
andreas_st
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2007
Posts: 112
Location: 48N 16E

PostPosted: Wed Nov 11, 2009 9:49 am    Post subject: Reply with quote

cwc wrote:
andreas_st wrote:
You might have to edit your apache configuration too if you have an IP address in a Listen statement.


where would this be located? httpd.conf?


Code:
grep -r Listen /etc/apache2/*

_________________
Registered Linux user #62727
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1281
Location: Tri-Cities, WA USA

PostPosted: Thu Nov 12, 2009 12:26 pm    Post subject: Reply with quote

andreas_st wrote:
cwc wrote:
andreas_st wrote:
You might have to edit your apache configuration too if you have an IP address in a Listen statement.


where would this be located? httpd.conf?


Code:
grep -r Listen /etc/apache2/*


that's slick! I need to use grep more. thanks for the tip
_________________
Without diversity there can be no evolution:)
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