sudo chmod -R o+rw /var/www
sudo chgrp -R www-data /var/www/html
Amazon AWS Filezilla transfer permission denied
chown -R ubuntu /var/www/html
Make sure permissions on that entire folder were correct:
chmod -R 755 /var/www/html
Ubuntu