All FILES should have permissions set to 644
All DIRECTORIES (i.e. folders) should have permissions set to 755
And the default owner is normally owner:group should be www-data:www-data
to fix:
find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \;