Wednesday, August 16, 2006

Apache and MySQL at system startup


Here is what I had to do to get MySQL and Apache to startup automatically on a Ubuntu 6.06 Linux system...

MySQL
-----------------------------------------
References Used
-----------------------------------------
http://www.adobe.com/devnet/dreamweaver/articles/lamp.html
http://dev.mysql.com/doc/refman/5.0/en/automatic-start.html
http://dev.mysql.com/doc/refman/5.0/en/mysql-server.html
http://www.debian-administration.org/articles/28

-----------------------------------------
Changed in /etc/my.cnf (From MySQL site)
-----------------------------------------
[mysqld]
user=mysql

-----------------------------------------
Set startup item (From Dreamweaver site)
-----------------------------------------
# sudo cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysql
# sudo update-rc.d mysql defaults

Results of the update-rc.d command were as follows:
Adding system startup for /etc/init.d/mysql ...
/etc/rc0.d/K20mysql -> ../init.d/mysql
/etc/rc1.d/K20mysql -> ../init.d/mysql
/etc/rc6.d/K20mysql -> ../init.d/mysql
/etc/rc2.d/S20mysql -> ../init.d/mysql
/etc/rc3.d/S20mysql -> ../init.d/mysql
/etc/rc4.d/S20mysql -> ../init.d/mysql
/etc/rc5.d/S20mysql -> ../init.d/mysql


Apache
-----------------------------------------
References Used
-----------------------------------------
http://www.adobe.com/devnet/dreamweaver/articles/lamp.html

-----------------------------------------
From Dreamweaver site
-----------------------------------------
# sudo cp /usr/local/apache2/bin/apachectl /etc/init.d/apache
# sudo update-rc.d apache defaults

Results of the update-rc.d command were as follows:
Adding system startup for /etc/init.d/apache ...
/etc/rc0.d/K20apache -> ../init.d/apache
/etc/rc1.d/K20apache -> ../init.d/apache
/etc/rc6.d/K20apache -> ../init.d/apache
/etc/rc2.d/S20apache -> ../init.d/apache
/etc/rc3.d/S20apache -> ../init.d/apache
/etc/rc4.d/S20apache -> ../init.d/apache
/etc/rc5.d/S20apache -> ../init.d/apache

No comments: