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'm about to set up a server upon which a friend and I will be hosting web sites, and I'll be using Debian. I've set up a LAMP solution many times just to using for local testing purposes, but never for actual production use.

I was wondering what are the best practices are in terms of setting the server up, in reference specifically to accessing the web root directory. A couple of the options I have seen:

  • Set up a single user account on the server for us both to use and use a virtual host to point to the somewhere in the home directory, e.g. /home/webdev/www.
  • Set each of us up a user account, and grant permissions in some way to /var/www (What would be the best way? Set up a new group?)

I want to get this right when I first set this up as there won't be any going back for a while once our first site is up and running.

Appreciate any guidance in advance.

share|improve this question

migrated from Mar 2 '11 at 14:00

This question came from our site for pro webmasters.

HERE is a link from a sister site, with a pretty good coverage of topics.

share|improve this answer

Create separate user accounts for both of you, and make sure the files are in the same group as the webserver. (i.e. option 2).

Neither option is really best practice. What you really should be doing is using a version control system such as subversion (SVN), each working on a separate branch, and merging your changes together ('trunk'). A service such as beanstalk can help you get off the ground quickly. (

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.