Auto Starting MySQL, HTTPD after reboot?
I am using CentOS, Apache, PHP, MySQL
5 Replies
Google is your friend.
But the gist of it is scripts in /etc/init.d, which sort of acts like the startup folder for 'doze. Anything in that folder will at least attempt to run at startup.
You'll probably have one script called httpd, and another mysql. The install may or may not have placed them there automagically.
HTH
Go to /etc/rc.d/rc3.d directory and perform an ls command.
You will get a listing of files. The files with a K prefix do not start up automatically at boot. The files that are prefixed with an S will start up automatically at boot.
If you want to start up Mysql and Http at boot:
perform the following commands as root:
mv K15httpd S15httpd
mv K36mysqld S36mysqld
That assumes that httpd and mysqld are not already enabled for start up. Just verify the K or S prefix and the sequence number for your instance.
In other words, the prefix for services that you want to start at boot should be prefixed with an S and the ones that you do not want to start at boot should be prefixed with a K.
This works for me, YMMV
Jeff
Jeff