httpd: Unrecognized Service Fix

How to Install Apache as a System Service

# cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpd

Then edit /etc/rc.d/init.d/httpd with vi and add the following (below #!/bin/sh)

# chkconfig: 2345 50 90

# description: Activates/Deactivates Apache Web Server

Finally, run chkconfig to add Apache to the system startup services:

# chkconfig –add httpd

# chkconfig httpd on

Then start the service with: service httpd start

Leave a Comment

Your email address will not be published.