Fix the permission for /var/www/html folder
# Change the user and group for html folder
sudo chown -R www-data: html/
# Add write permission
sudo find html -type f -exec chmod 664 {} + -o -type d -exec chmod 775 {} +
# Add user to www-data group
sudo usermod -a -G www-data username