- Who should be the owner of my
/var/www/html/owncloud
directory? By default it isroot
because I have to unzip asroot
in this directory. - Should I change the owner of this directory to
www-data
then? - Should I do it recursively?
I understand that the ownCloud data directory (which is located at /home/<username>/owncloud-data
) has to have www-data as owner so the Apache server is able to write to that directory.
Same question applies to WordPress and MantisBT for example.