Add Apache and MySQL as CentOS Services
When you install self-compiled Apache and MySQL, they are not added as system services by default, so we need to manually add them as services. Adding Apache as a System Service Copy apachectl to the init.d directory # cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd Edit httpd # vi /etc/rc.d/init.d/httpd Add the following comment lines: # chkconfig: 345 85 15 # description: Apache server Add Apache to the system services # chkconfig --add httpd Adding MySQL as a System Service ...