1. Switch the path to the root directory of the website
2. Change the user and user group of the file
chown -R www-data:www-data ./
3. Change folder permissions
find ./ -type d -exec chmod 755 {
} \;
4. Change file permissions
find ./ -type f -exec chmod 644 {
} \;