Permisson for /var/www

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


On Tue, Aug 2, 2011 at 2:19 PM, Avi Greenbury <lists at avi.co> 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 !!

 Regards
 Amrit Pal

 amritpalpathak.blogspot.com <http://amritpalpathak.blogspot.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110802/8d049eb0/attachment.html>


More information about the ubuntu-users mailing list