Apache - MySQL - PHP (Auto-start Apache)

Apache - MySQL - PHP (Auto-start Apache)

Post by John Hallad » Thu, 25 Jan 2001 01:03:14



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)



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

Apache - MySQL - PHP (Auto-start Apache)

Post by Joak » Thu, 25 Jan 2001 01:24:53


Just put
/usr/local/apache/bin/apachectl start
last in your /etc/rc.d/rc.local file..

rc.local will run at startup so apache will be started ..

/Joakim Lemstr?m, Sweden


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



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



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

Apache - MySQL - PHP (Auto-start Apache)

Post by Freaked Personali » Fri, 26 Jan 2001 18:40:08


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 :-)


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



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



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

Apache - MySQL - PHP (Auto-start Apache)

Post by Mark Maund » Fri, 26 Jan 2001 21:55:35


(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*


> 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 :-)


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



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



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



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

Apache - MySQL - PHP (Auto-start Apache)

Post by jgo.. » Fri, 26 Jan 2001 22:06:14


You can put this in the /etc/rc.d/rc.local

    /usr/local/apache/bin/apachectl start


> (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*


> > 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 :-)


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

> > > To unsubscribe, e-mail
> <mysql-unsubscribe-


- Show quoted text -

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

> > To unsubscribe, e-mail

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

> To unsubscribe, e-mail

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



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

Apache - MySQL - PHP (Auto-start Apache)

Post by johnny p » Sat, 27 Jan 2001 07:23:17


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

> 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


> > (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*


> > > 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 :-)


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

> > > > To unsubscribe, e-mail
> > <mysql-unsubscribe-

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

> > > To unsubscribe, e-mail

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

> > To unsubscribe, e-mail

> > 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 unsubscribe, e-mail

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



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

1. Apache make fails (apache, ssl, php, mysql)

I'm trying to add php support into apache and the 'make' command fails.
mysql-3.23.38 installed fine and I ran some tests and everything is working.
php-4.0.5 also installed fine (but don't know how to test it from the
command line). The apache configure also went fine:


But when I try to do 'make' for apache, I run into these problems:

(there is lots of messages about 'undefined reference...' for mysql)

modules/php4/libphp4.a(php_mysql.o): In function `_free_mysql_result':
/home/ae/software/php-4.0.5/ext/mysql/php_mysql.c:191: undefined reference
to `m
ysql_free_result'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/ae/software/apache_1.3.14/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/ae/software/apache_1.3.14'
make: *** [build] Error 2

Does anyone know how I can correct this problem?

P.S. I'm trying to do this on a RedHat 7.0 box with a working version of
apache 1.3.14 already installed.

Thanks!

SW

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

2. Error: DataMgr. c, Line 4250, Invalid uniqueID passed

3. FIX [PHP-INST] Problem with PHP/Apache/MySQL on fresh RH7 install

4. help sought about weird vi error message ...

5. Placing Apache::RequestRec & Apache::RequestIO & APR::Table use statements in startup.pl

6. Code Source for diagnostic PC hardware

7. install apache, php + mysql on linux redhat 6.2

8. AS/400-To-AS/400 TCP/IP

9. Pocket PC, Flash, Linux server, Apache, MySQL, PHP

10. linux novice cannot resolve apache-php-mysql linkage 2.

11. new install prblm mysql/php/apache

12. Problems compiling PHP with mysql support as a apache DSO on a

13. mySQL cache, BLOB, Apache or PHP limits on uploads?