How to set correct permissions for OwnCloud user?

I can’t run it. Gives permission denied. Which is super weird 'coz I’m running it as root using the www-data user whom root gave ownership over that drive and everything that’s in it.

Gotta say I’m very happy that Linux permission system is this robust. So robust root can hardly do anything haha.

I can run anything as a root but if I use www-data through root it throws an error.
Sorry, I don’t know what SELinux is. Would have to do extra research about it.