This question already has an answer here:
So I am pretty new to managing my own permissions, and am looking for the cross between ease of use and security.
What I have found as the easiest way to manage multiple domains on a VPS (Ubuntu 12.04 server) is creating their own subdirectories in
/var/www/ (root access) and using Apache Virtual Host to direct traffic to the appropriate subfolder.
The sites are running on wordpress and it needs write access. It appears apache runs as
Here is my solution:
chown -R www-data: /var/www to give ownership
chmod -R 755 /var/www for write access.
I am the only user on this server.
Is there anything glaringly wrong with this setup I should be considering? As I said, I am new to permissions and want to make sure I am not leaving something open.