sudo chown -R http:http /usr/share/nginx/html/ sudo find /usr/share/nginx/html/ -type d -exec chmod 775 {} + sudo find /usr/share/nginx/html/ -type f -exec chmod 664 {} +