Auto Start Apache Webserver On Cent OS

Last modified: 
Friday, March 27th, 2015


How to set Apache httpd to autostart on Cent Os 5.

Make sure httpd is installed.

 /sbin/chkconfig --list | grep httpd

This should return something like

httpd           0:off   1:off   2:off   3:off   4:off   5:off   6:off

Set httpd to on with chkconfig.

/sbin/chkconfig httpd on

Check httpd's settings again.

/sbin/chkconfig --list | grep httpd
httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off

Reboot to see if the Apache web server is actually auto-starting.

/sbin/shutdown -r now

Check for a pid (or navigate to localhost). If you get a response, it worked!

ps -f | grep httpd
root      2701  2702  0 11:28 pts/1    00:00:00 grep httpd


CentOS 5 and Auto Starting Apache httpd and Samba

The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.