View previous topic :: View next topic |
Author |
Message |
jonwizmedia n00b

Joined: 09 Feb 2004 Posts: 10
|
Posted: Tue Feb 10, 2004 5:24 pm Post subject: Adding apache2 to default runlevels |
|
|
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;
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 |
|
 |
roger_rabbit n00b


Joined: 29 Dec 2003 Posts: 37 Location: georgia
|
Posted: Tue Feb 10, 2004 6:33 pm Post subject: |
|
|
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 |
|
 |
jonwizmedia n00b

Joined: 09 Feb 2004 Posts: 10
|
Posted: Tue Feb 10, 2004 8:57 pm Post subject: |
|
|
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 |
|
 |
|