This is a discussion on Start Apache Automatically at boot? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello everyone. I have just installed Apache2 on Linux(RH9). I've installed it at /usr/local/apache. I'm ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello everyone. I have just installed Apache2 on Linux(RH9). I've
installed it at /usr/local/apache. I'm very, very new to Linux, so the whole boot processing still evades me. Does anyone have anything I can read to get this working? I know I have to make a call to apachectl in the /usr/local/apache/bin directory, but make the call from where? Example code and the name of the file to edit would benefit me greatly. Can I also get it to shut down on server shutdown? Thanks. |
|
|||
|
A. Name <orakin@hotmail.com> wrote:
> the whole boot processing still evades me. Does anyone have anything > I can read to get this working? The from-boot-to-bash-howto sounds good. > from where? Just make a link in /etc/rc.d/rc3.d calles S99apache to your apachectl. It's enough. > Can I also get it to shut down on server shutdown? When you shutdown the server everuthing is shutted down, so... Davide -- | I try to explain, but he goes into the back room and gets this wizened | old guy with a pocket protector and a nametag that read "Senior | Engineer." -- Jack Twilley |
|
|||
|
Download the source distribution of apache.
Copy the file build/rpm/httpd.init as /etc/init.d/httpd (you may already have one if an older version of apache was installed with redhat). Edit your copy and change the line "# chkconfig: - 85 15" to something like "# chkconfig: 345 85 15" (this indicates the runmodes to start apache in, 3,4&5 in this case). Depending on where you installed apache, you may need to either edit the paths just below "apachectl=/usr/sbin/apachectl" & "httpd=${HTTPD-/usr/sbin/httpd}" or make sure these paths point to symbolic links which point to your real installed files Run the command "/sbin/chkconfig --add httpd" Check with "/sbin/chkconfig --list" to make sure all looks ok. Richard. "A. Name" <orakin@hotmail.com> wrote in message news:d1a2ec09.0401121526.3ae02465@posting.google.c om... > Hello everyone. I have just installed Apache2 on Linux(RH9). I've > installed it at /usr/local/apache. I'm very, very new to Linux, so > the whole boot processing still evades me. Does anyone have anything > I can read to get this working? I know I have to make a call to > apachectl in the /usr/local/apache/bin directory, but make the call > from where? Example code and the name of the file to edit would > benefit me greatly. > > Can I also get it to shut down on server shutdown? > > Thanks. |
|
|||
|
Davide,
Where do I get this "boot-to-bash-howto" also, I'm really, really new to Linux so I don't know how to create the call to S99apache. Can you explain. Thanks. Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<bu01vh$c4eoe$4@ID-18487.news.uni-berlin.de>... > A. Name <orakin@hotmail.com> wrote: > > the whole boot processing still evades me. Does anyone have anything > > I can read to get this working? > > The from-boot-to-bash-howto sounds good. > > > from where? > > Just make a link in /etc/rc.d/rc3.d calles S99apache to your apachectl. > It's enough. > > > Can I also get it to shut down on server shutdown? > > When you shutdown the server everuthing is shutted down, so... > > Davide |
|
|||
|
A. Name <orakin@hotmail.com> wrote:
> Where do I get this "boot-to-bash-howto" Where you get all the how-tos: http://www.tldp.org > to Linux so I don't know how to create the call to S99apache. ln -s man ln RTFM Davide -- | "I'm sorry, I can't be a Jehovah's Witness, as I didn't see Jehovah's | accident." -- Chris Suslowicz |
|
|||
|
"A. Name" <orakin@hotmail.com> wrote in message news:d1a2ec09.0401130403.6ede84df@posting.google.c om... > Davide, > > Where do I get this "boot-to-bash-howto" also, I'm really, really new > to Linux so I don't know how to create the call to S99apache. Can you > explain. I'd recommend you follow the instructions I suggested instead, which is the "proper" way. The chkconfig program will create all the links for you and you will have a proper standard initd script, rather than calling apachectl directly. Richard. |