I'm trying to install wordpress, and i'm following an article on the web, and one of the steps is:
Now, we need to change the permission of the ‘wordpress‘ directory. Prompt to the wordpress directory in the root directory we just copied and run the following command:
sudo chown -R username:www-data *
This command will assign the control of our wordpress directory to www-data user. This is a user web servers used to access the files. In this way the server would be able to write directly to our wordpress directory.
So I change directories, and go into the wordpress dir that's in root, run the command but get this error code:
chown: invalid user: ‘username:www-data’
I'm not sure if I'm supposed to put something other than username
(the article it does specify this) or do something else.
whoami
and see if the result is the same as what you think your username is. – TheSchwa Mar 06 '16 at 23:29