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 have several virtual hosts, and I want to run each one of them on a separate user to isolate the websites from each other. I have searched for a solution, but I can't find an up-to-date solution. What's the best way to run each virtual host asa separate user?

I am running Ubuntu 11.10.

share|improve this question
Can you clarify what it is you're trying to achieve? Is the goal to make it so that files don't have to be world-readable? Or is the goal to make scripts run as a particular user so each virtual host has its own security context on the machine? – David Schwartz Oct 25 '11 at 1:46
up vote 4 down vote accepted

I'm not sure if this is in 11.10 but look into

It allows you to set a user/group per vhost

share|improve this answer
Looks like a yes. – Shane Madden Oct 25 '11 at 1:43

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.