Starting Apache And Named On Server Boot

By | April 30, 2008

If you have installed Apache and Bind by yourself, they do not start automatically upon your server boot. In order to start them you don’t need any special knowledge, only a small linux command.
chkconfig --level 235 httpd on
chkconfig --level 235 named on

This will start these services automatically on runlevels 2,3 and 5. You don’t need to set them on other runlevels. Then you need to ensure whether everything went ok. Anothe simple command:
chkconfig --list httpd
chkconfig --list named

You should get something like this:
httpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off

Have fun!