View previous topic :: View next topic |
Author |
Message |
cwc Veteran
Joined: 20 Mar 2006 Posts: 1281 Location: Tri-Cities, WA USA
|
Posted: Tue Nov 10, 2009 1:26 pm Post subject: apache and mysql will not start without net.eth0 [solved] |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Nov 10, 2009 7:00 pm Post subject: |
|
|
/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 |
|
|
andreas_st Tux's lil' helper
Joined: 26 Dec 2007 Posts: 112 Location: 48N 16E
|
Posted: Tue Nov 10, 2009 8:27 pm Post subject: |
|
|
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 |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1281 Location: Tri-Cities, WA USA
|
Posted: Wed Nov 11, 2009 4:45 am Post subject: |
|
|
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 |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1281 Location: Tri-Cities, WA USA
|
Posted: Wed Nov 11, 2009 4:46 am Post subject: |
|
|
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 |
|
|
CooDy n00b
Joined: 26 Aug 2004 Posts: 36 Location: Slovenia
|
Posted: Wed Nov 11, 2009 7:08 am Post subject: |
|
|
/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 |
|
|
andreas_st Tux's lil' helper
Joined: 26 Dec 2007 Posts: 112 Location: 48N 16E
|
Posted: Wed Nov 11, 2009 9:49 am Post subject: |
|
|
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 |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1281 Location: Tri-Cities, WA USA
|
Posted: Thu Nov 12, 2009 12:26 pm Post subject: |
|
|
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 |
|
|
|