Below are the steps you should take when running a server under UNIX (as the most commonly used server platform nowadays).
Do not run your Web server as a privileged user (root).
If an intruder finds a security hole in the server, this will give them complete access to your server!!!.
You may run it under a special account, like www.