nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 2021/03/16 00:19:38 [emerg] 422075#422075: unknown directive "listin" in /etc/nginx/nginx.conf: 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;