Proper owner of var/www/html
问题 I am running apache2 in Ubuntu 14.04. I have been having trouble with permissions with FTP clients and CMS that use backend FTP. I never seem to be able to get the permissions right. Should www-data be the owner of /var/www/html and root as a user assigned to that group? 回答1: Some CMSes and Wordpress is especially bad about that because it's actually in the code to use the web user. BTW you should never need to use root for ftp. www-data the default apache user on ubuntu should own your web