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 started with one server running Apache, PHP, MySQL. Now I have split off my web server so I am running all the PHP files on one server and my MySQL is still on the original server. Are there services / programs that I can turn off or uninstall from the MySQL Server now, or do I need to keep httpd (etc) running? I know how to turn it off, I need to know if it is okay to turn it off without breaking anything.

I am using Amazon AWS and connecting from the PHP server to the MySQL database using the MySQL Database's Internal DNS / IP Address.

I am using Amazon Linux AMI release 2012.09

Thank you for any insight you can provide.

share|improve this question
What linux distribution are you using? – Tom O'Connor Jan 10 '13 at 21:20
up vote 4 down vote accepted

The following commands will work on your distribution.

service httpd stop

This command will stop the current httpd service. But keep in mind that it is still configured to start up on system boot.

If you would like to configure httpd to no longer start on boot.

chkconfig httpd off
share|improve this answer

Httpd is only used if you are planning to serve any content or site. If not, you can shutdown Apache service safely and it won't break anything.

Amazon itself doesn't use Apache in any tasks.

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.