Permisson for /var/www

Amrit Pal Pathak amritpalpathak1 at
Tue Aug 2 08:58:09 UTC 2011

On Tue, Aug 2, 2011 at 2:19 PM, Avi Greenbury <lists at> wrote:

> Amrit Pal Pathak wrote:
> > What permission should i give to /var/www directory so that i can
> > access all directories and files from /var/www by browser without any
> > issue ?
> For a standard PHP or HTML site, the web server needs to be able to read
> all the files, and ideally not write to them, and read and execute all
> directories.
> I tend to chown them to root:www-data and use the group bits to control
> what the webserver may do with any particular file,

     I dont know what went wrong with my web directory
     /var/www.Unable to access php files from there.
         sudo chown root:www-data /var/www


 Thank you !!

 Amrit Pal <>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list