/var/www Ownership/Permissions Settings
I have a question about ownership I want to throw out there.
What should the ownership settings be for /var/www on a Ubuntu VPS?
root:root? www-data/www-data? (my user):(my user)?
I need two things:
1. To be able to add/modify/delete files myself
2. To allow Apache to add/modify/delete files too (I have a few PHP scripts that do that)
What would you guys recommend?
Thanks in advance for your suggestions!
6 Replies
@jzimmerlin:
What do you think of me adding myself to the www-data group so I didn't have to do that?
That would work as long as the PHP files and relevant directories have permissions of 664 (or greater) so the group has write permissions.