Yes, but does it get cleanly stopped when you shutdown? put the start
command in /etc/rc.d/rc.local, fine, but I think there needs to be a
kill link added to /etc/rc.d/rc.3 dir.
I like the link from apachectl to /etc/rc.d/init.d/ idea:
ln -s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
this is correct, if you're in run level 3, to kill apache on shutdown:
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/K90httpd
this will only work if you go into run level 6 (reboot), shutdown is run
level 0 and won't call this script, may not always get executed:
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc6.d/K90httpd # BAD
I don't recommend running X on a web server at all, so you should only
really be running in multi-user networked mode, or run level 3, IMHO.
Isn't this the MySQL mail list, BTW? I think there's a mail list or
newsgroup for apache somewhere... perhaps even a linux admin newsgroup
would be even more appropriate.
HTH,
-jp
-Original Message-,
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 7:00 AM
To: Mark Maunder
Cc: Freaked Personality; John Halladay; "MySQL List (E-mail)"
Subject: Re: Apache - MySQL - PHP (Auto-start Apache)
You can put this in the /etc/rc.d/rc.local
/usr/local/apache/bin/apachectl start
Mensaje citado por: Mark Maunder [EMAIL PROTECTED]:
(quicky coz this is way off topic):
ln -s /usr/local/apache/bin/apachectl
/etc/rc.d/init.d/httpd
ln -s /etc/rc.d/init.d/httpd
/etc/rc.d/rc3.d/S90httpd
ln -s /etc/rc.d/init.d/httpd
/etc/rc.d/rc5.d/S90httpd
ln -s /etc/rc.d/init.d/httpd
/etc/rc.d/rc6.d/K90httpd
That should do it. Should bring up your httpd
whether you\'re running runlevel 3 (command
line) or runlevel 5 (X windows) on redhat whatever
version. (I think). You can use the same
scheme for starting mysqld too (excuse for posting
to list)
*duck*
Freaked Personality wrote:
You don\'t configure apache to do this, since
apache has no idea when the
server boots up...
You have to edit your start-up scripts which are
mostly in /etc/rc.d to
start up apache. There\'s a huge number of ways to
do this (to script
it) ie with error checking/without error checking
with mail on error etc
etc depending on your distribution you then have
to add files to run
level directories (links) or have to do run level
checking in the start-up
scripts which isn\'t explained that easy. Knowing
which distribution you
use could prove very helpful :-)
On Tue, 23 Jan 2001, John Halladay wrote:
I\'m currently running Apache 1.3.12, MySQL
3.22.32-1, and PHP 4.0.3 together
on RedHat 7.0 and everything works fine,
although every time I boot up I
have to manually start the Web Server with
command
/usr/local/apache/bin/apachectl start.
Does anyone know how to configure Apache so that
it will start up
automatically when I boot up Linux? (I know
it\'s a little off the MySQL
subject, but I figured someone would have a
similar setup.)
Thanks,
John Halladay
--
---
Before posting, please check:
http://www.mysql.com/manual.php (the
manual)
http://lists.mysql.com/ (the list
archive)
To request this thread, e-mail
[EMAIL PROTECTED]
To unsubscribe, e-mail
mysql-unsubscribe-
[EMAIL PROTECTED]
Trouble unsubscribing? Try:
http://lists.mysql.com/php/unsubscribe.php
--
---
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list
archive)
To request this thread, e-mail
[EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try:
http://lists.mysql.com/php/unsubscribe.php
--
---
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list
archive)
To request this thread, e-mail
[EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try:
http://lists.mysql.com/php/unsubscribe.php
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
-
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail [EMAIL PROTECTED]
To