Re: starting apache at boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 04 June 2003 10:26, shane c branch wrote:
> I replaced the default rh9 apache installation with an upgrade to
> apache-2.0.45, but now apache will not start at boot time. I can start the
> server manually with /usr/local/apache-2.0.45/bin/apachectl start.
>
> I checked www.apache.org, and it mentions that one can modify some scripts
> (I assume something in /etc/rc.d/init.d) to call apachectl at boot time,
> but it didn't say exactly *what* to change.
>
> Could someone get me pointed in the right direction with an example or two?
>

If you look in the /etc/init.d/httpd script, you'll notice a few variables 
that you can modify to suit your tastes.

This is what it is right now:
# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd

This is what you probably want:
# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/local/apache/bin/apachectl
httpd=${HTTPD-/usr/local/apache/bin/httpd}
# or httpd=/usr/local/apache/bin/httpd
prog=httpd

- -- 
Jonathan Gardner <jgardner@xxxxxxxxxxxxxxxxxxx>
(was jgardn@xxxxxxxxxxxxxxxxxxxxx)
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+3l1rWgwF3QvpWNwRAkyWAKCbWt9jfX1uhXVOc47G8km9gi/4RACfTcH6
uD+PtAkASsYRufRECebRPw4=
=jYY6
-----END PGP SIGNATURE-----




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux