www-data permissions on /var/www

Ric Moore wayward4now at gmail.com
Wed Nov 14 06:17:45 UTC 2012


On 11/11/2012 08:06 PM, thufir wrote:
> My /var/www directory permissions are:
>
> drwxr-xr-x  2 root root     4096 Nov 11 15:34 www/
>
>
> While running the install script for FUDForum, I get this message:
>
> Directory "/var/www/" exists, but the installation script is unable to
> write to the directory. Please grant read/write permissions to the web-
> server user (www-data/www-data)
>
>
> The web-server user is www-data?  I tried changing permissions for the /
> var/www folder to add group permissions with chmod g+w /var/www but was
> insuficient.
>
> thufir at dur:~$ cat /etc/passwd | grep www
> www-data:x:33:33:www-data:/var/www:/bin/sh
> thufir at dur:~$
>
> thufir at dur:~$ cat /etc/group | grep www
> www-data:x:33:
> thufir at dur:~$
>
>
>
> maybe www-data is in the wrong group?  Or, just go ahead and give
> everyone rw permissions to /var/www ?
>
> I'm not well versed in apache.
I just cd into /var and type
sudo chown -R www-data:www-data www/
Works for me with no more errors. Ric



-- 
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html




More information about the ubuntu-users mailing list