Shell/Bash: nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: permission denied) Example

By

Shell/Bash Example: This is the "nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: permission denied)" Example. compiled from many sources on the internet by SimpleTutorials.org

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;


* Summary: This "nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: permission denied)" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others