Possible Duplicate:
Whats the simplest way to edit and add files to “/var/www”?
I just installed Ubuntu server 12.04, now when I create any folder in www/ the default permission is creating problem and every time I have to give permission manually.
Please give me the command to run so that when I create any folder or file in the www directory I do not have to give permission and it run by default.
thanks in advance
sudo adduser www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www
but now I can not enter into the directory. I dont what is the reason but my problem is still not solved.
Noddy
– vaibhav Oct 15 '12 at 09:02