Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 webmasters.stackexchange.com Mar 2 '11 at 14:00

This question came from our site for pro webmasters.

2 Answers 2

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. (www.beanstalkapp.com)

share|improve this answer

Your Answer

 
discard

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.