[ad_1]
[ad_2]
From what I know so far, folders should have permissions set to 755, and files should be set to 644. Is this correct?
But who should be the owner of the root directory? Should it be root, the user (me), or www-data?
It's confusing because many articles never mention the owner, but some say it should be Apache.

[https://developer.wordpress.org/advanced-administration/server/file-permissions/](https://developer.wordpress.org/advanced-administration/server/file-permissions/)
www-data should own the wp folder. You should create a separate linux user for each site that you host, if you’re hosting more than one site on a server.