Start Apache Automatically at boot?

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2004
A. Name
 
Posts: n/a
Default Start Apache Automatically at boot?

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.
  #2 (permalink)  
Old 01-13-2004
Davide Bianchi
 
Posts: n/a
Default Re: Start Apache Automatically at boot?

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
  #3 (permalink)  
Old 01-13-2004
Richard Antony Burton
 
Posts: n/a
Default Re: Start Apache Automatically at boot?

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.



  #4 (permalink)  
Old 01-13-2004
A. Name
 
Posts: n/a
Default Re: Start Apache Automatically at boot?

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

  #5 (permalink)  
Old 01-13-2004
Davide Bianchi
 
Posts: n/a
Default Re: Start Apache Automatically at boot?

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
  #6 (permalink)  
Old 01-13-2004
Richard Antony Burton
 
Posts: n/a
Default Re: Start Apache Automatically at boot?


"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.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0