I've had this issue on several setups, and I'm unsure of how to handle it.
At first, all of
/var is owned by
root:root. Clearly I don't want the web directory to be owned by root, so I do
chown apache:apache /var/www. However, when someone is
ssh'd in as root, if they do something like an
svn update or edit a file, it's going to change the ownership back to root.
Is there any way to fix this? I've heard of using something with suPhp, but I'm unsure if it's necessary.