This question already has an answer here:
After looking around this site, it's been said that it's best practice to use 644 permission for my websites in /var/www.
So I have done chmod 644 /var/www/mysite
I now no longer have access to the mysite folder, permission denied. After asking this question it seems that I need to allow my user execute permissions.
I've done this but now feel I am in a bit of a mess.
So could someone please explain the best practice when it comes to setting permissions for /var/www/mysite?
I want myuser to be able to go in there. What sort of access should www-data have? Basically what permissions should I set for this folder and sub folders for each user?