nginx nginx: [alert] could not open error log file: open() "/usr/local/var/log/nginx/error.log" failed (13: Permission denied) 2021/01/19 16:38:23 [emerg] 93791#0: open() "/usr code example
Example: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
sudo chown -R www-data:www-data /var/log/nginx;
sudo chmod -R 755 /var/log/nginx;