[SLUG] Writing to /var/www/html

Ross Kendall ross at rosskendall.com
Sun Jun 3 09:41:44 BST 2007


Hi Stephen,

Since it is just a dev box, you could run apache as your username, just 
edit the httpd.conf
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#user

Cheers,
Ross

Stephen O'Neill wrote:
> Ross Kendall wrote:
>> It is also possible to change the umask for Apache so that files are
>> written with group write permission by default (664), but I can't
>> remember how to do it off the top of my head.
>
>
> This is the bit that would be useful to me. All the other stuff you 
> mentioned is obviously correct but as a dev machine I am happy to 
> ignore that in exchange for convenience.
>
> Ideally I'd like to know if I can write files as a normal user to 
> /var/www/html/ and perhaps leave me as the owner but make www-data as 
> the group owner...
>
> Hmm. Fun.
>
> Welcome by the way!
>
> Steve O
>




More information about the Scarborough mailing list