File folder permissions
UPLOAD_FILE_PERMISSIONS
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
Or
find . -type d -print0 | sudo xargs -0 chown ec2-user:www-data
find . -type d -print0 | sudo xargs -0 chmod 775
find . -type f -print0 | sudo xargs -0 chmod 664