By default many Apache RPM packages do not set the httpd server to start automatically on boot so this needs to be done manually. On RedHat/CentOS the chkconfig command should be used as follows:
1 2 3 4 5 |
[root@localhost]# /sbin/chkconfig --list httpd httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@localhost]# /sbin/chkconfig --level 345 httpd on [root@localhost]# /sbin/chkconfig --list httpd httpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off |