Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running CentOS which has Apache installed. It automatically starts up (script is in /etc/init.d). Since this is a standalone database server, I have no need for Apache to be running. How do I disable the startup? Just delete the file in /etc/init.d?

share|improve this question
up vote 13 down vote accepted

# chkconfig <servicename> off

Then to verify:

chkconfig --list | grep <servicename>

So probably chkconfig httpd off , you want to go read about runlevels in man init. The verification should return httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off. If you want to stop it without restarting run /etc/init.d/httpd stop. All of these will need to be done with root privileges.

share|improve this answer

Right, you can also do it using setup configuration tool:

sudo setup

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.