Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a CentOS server that came installed with WHM and cPanel and the corresponding LAMP stack. I disabled Apache and MySQL and replaced them with nginx and PostgreSQL.

...Or at least I thought I did. Apache insists on starting up on boot, blocking the ports nginx needs. So every time the server goes down for maintenance or is restarted for some other reason, Apache starts serving an old "under construction" page we had put up. After being alerted to the issue via a few angry phone calls, I have to shutdown Apache and start up nginx.

chkconfig --list httpd returns:

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

So I don't know what's booting up Apache. Any thoughts on what could be happening?

share|improve this question

There are two things you could do to fix this.

  1. Track down what is pulling in httpd as a dependency and starting it.
  2. Remove httpd and mysql-server packages.

Ideally, you would do both. However, if due to time constraints or based on how much you care only one of those options is likely?

enter image description here

If you have completely replaced Apache and MySQL then you have no reason to keep them on your system, and all they're doing is taking up space, increasing your attack surface, and increasing your risk of something untoward happening (as is going on right now).

share|improve this answer
I can't even uninstall it; yum remove httpd just says No Match for argument: httpd. – Theron Luhn Nov 2 '12 at 19:27
@TheronLuhn: Oh bugger me. I wonder if they bundled httpd directly in their broken install. Which might also explain your problems since the "helpful tools" are probably starting it for you. Check the output of 'rpm -qf /usr/sbin/httpd' and see what actually owns that file. – Scott Pack Nov 2 '12 at 19:32
file /usr/sbin/httpd is not owned by any package. Dammit. I'll contact my host and see if they can do anything. – Theron Luhn Nov 2 '12 at 19:37
@TheronLuhn: Yup, this is what happens when you use things like WHM and cPanel. They break the system so it doesn't really work the way you expect it to. – Scott Pack Nov 2 '12 at 19:40

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.