I had a similar issue recently. I set up 4 virtual hosts and had no problems with permissions but for some reason my most recent virtual host, which I set up the exact same way as the other 4, had permissions set to root on it instead of my user name.
I fixed it through the command line.
To see the permissions on the directory you are trying to access use the code
Code:
ls -l
make sure you add the path to the directory you are trying to look at or be in the correct directory where the directory you are trying to look at is stored.
to change ownership of the directory used
Code:
sudo chown username siteexample.com
to change the group I used
Code:
sudo chgrp username siteexample.com
you can then check to see if the changes took place by using the
Code:
ls -l
command on the directory again.
This page has more info file permissions.
https://help.ubuntu.com/community/FilePermissions but yeah after I changed the permissions to my user name I was able to access the directory via my SFTP program no problem. I'm using Cyberduck. For whatever reason I didn't have to do this with the other 4 virtual hosts but I did have to do it with this most recent one.
Another thing to check would be if your admin user account is set up correctly. this guide lists the instructions that I followed to set up my user as an admin but so that I can do what I need to do but not have to log in as root.
https://www.linode.com/docs/security/se ... ur-server/