Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adding apache2 to default runlevels
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
jonwizmedia
n00b
n00b


Joined: 09 Feb 2004
Posts: 10

PostPosted: Tue Feb 10, 2004 5:24 pm    Post subject: Adding apache2 to default runlevels Reply with quote

Using the following command I've added apache2 to the default runlevels.
Code:

rc-update add apache2 default

However, when /etc/init.d/apache2 is called at boot time, it does not successfully start apache, but rather outputs the help usage menu.

I CAN start apache2 manually using;
Code:

apache2 -k start


But, the point of adding it to default runlevels is so I dont have to manually start it each time.

Is it possible to modify the runlevel script of apache2 so that it utilizes the -k switch?
Because calling apache2 without -k does not seem to get it started.

Any insight on;
1. adding apache2 to default runlevels
2. as well as what configs could be interfering with the simple /etc/init.d/apache functionality

would be much appreciated...

Thanks.
Back to top
View user's profile Send private message
roger_rabbit
n00b
n00b


Joined: 29 Dec 2003
Posts: 37
Location: georgia

PostPosted: Tue Feb 10, 2004 6:33 pm    Post subject: Reply with quote

does everything exit happily when you
Code:
rc-update add apache2 default


whats the -k for?

sry i don't use apache2 ..
_________________
----------------------------------------
compilation, compilation - whats the difference.
Back to top
View user's profile Send private message
jonwizmedia
n00b
n00b


Joined: 09 Feb 2004
Posts: 10

PostPosted: Tue Feb 10, 2004 8:57 pm    Post subject: Reply with quote

It was a silly error of failing to pay detailed attention:

file = /etc/conf.d/apache2 My malfunctioning version
Code:

# This means that the mod_ssl.so DSO module is only loaded
# into the server when you pass "-D SSL" at startup.  To
# enable WebDAV, add "-D DAV -D DAV_FS".  If you installed
# mod_php then add "-D PHP4".  For more options, please
# read the files in the /etc/apache2/conf/modules.d directory.
APACHE2_OPTS="-D SSL PHP4"


file = /etc/conf.d/apache2 My working version
Code:

# This means that the mod_ssl.so DSO module is only loaded
# into the server when you pass "-D SSL" at startup.  To
# enable WebDAV, add "-D DAV -D DAV_FS".  If you installed
# mod_php then add "-D PHP4".  For more options, please
# read the files in the /etc/apache2/conf/modules.d directory.
APACHE2_OPTS="-D SSL -D PHP4"


I failed to add the -D before the PHP4 module.

Now my /etc/init.d/apache2 start works great whether the APACHE2_OPTS line is commented or uncommented..as long as the -D is there before the module.

Pheww..it's not something worse.
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