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?
There are two things you could do to fix this.
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?
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).