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've been a developer for years and by trade I had to know a little bit of server side configuration. But now I find myself needing to manage my own VPS instance (Amazon EC2) and I'm lost. I'd like to know what are the common ways to configure an Apache and MySQL server that is secure and efficient.

For example right now I'm doing everything as root but I doubt that's the best way at all. My whole Apache is configured to serve 1 site when I'd like it to be able to serve multiple sites.

Where do I start?

share|improve this question

closed as not a real question by MadHatter, Tom O'Connor, Michael Hampton, EEAA, pauska Nov 2 '12 at 14:43

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Try to stick to one question at a time and keep them narrow enough that they won't fill an entire book. Pick one of the "should I be root" or "Apache vhosts" questions and split them into two. If you're looking to become a full time sysadmin, this question would be a good place to start. – Ladadadada Nov 2 '12 at 9:51
Ladadadada thanks but while I understand your remark my question is really broad in its nature. Frank understood it with his answer which contains very good pointers for me. – Lorenzo Nov 2 '12 at 10:11
up vote 2 down vote accepted

First of all you need to know some basic Bash commands, you can find them here:

Here is another tutorial for LAMP(Linux,Apache,MySQL,PHP).....

Basic Apache website(Virtual hosting) configuration:

and for MySQL

share|improve this answer

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