Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Instead of changing permissions to /var/www, installing nautilus permission related extensions or having to execute gksu i want to know an easy to do way of changing /var/www to another place like /home/cyrex/www for example. This way I save on doing all the permission related problems.

share|improve this question
I was looking for this to connect my Dropbox directory to my /www since I have this setup on my work Mac and home Mac and my Windows VM, now with this I can set it up on my Ubuntu box and have a "local" server thats connected to 4 computers! – Oscar Godson May 18 '11 at 22:45
FYI, I used GUIs for Mac and Windows (MAMP Pro and WAMP) – Oscar Godson May 18 '11 at 22:45
up vote 9 down vote accepted

Well i could close the question but just found the answer here: (The community help has gotten better)

Anyway the faster way was to edit the file of apache from /etc/apache2/sites-available/ in my case it was 000-default. Change all the /var/www entries (in my case 2) to the directory you want www to be in. This is the way without the virtual Hosts which is also mention in that link.

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.