Make sure all folders are accessible by the web server and you.
sudo find /var/www/mytestsite -type d -exec chmod 755 {} \\;
| Part | Meaning |
|---|---|
find |
Search for items |
-type d |
Search only for directories |
-exec chmod 755 |
Set permissions to 755 on each folder |
755 |
Owner = all rights, Group & Others = read + execute only |
{} |
Placeholder for each result from find |
\\; |
End of -exec command |