Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the error logs of nginx, using FastCGI and Django?

I'm using Django with FastCGI + nginx. Where are the logs (errors) stored in this case?

like image 617
ha22109 Avatar asked Nov 10 '09 07:11

ha22109


People also ask

Where is the nginx error log?

Nginx writes the information in the different severity levels debug , info , notice , warn , error , alert , and emerg to the logs. By default, the Nginx access log is located at /var/log/nginx/access. log and the error log is located at /var/log/nginx/error.

What is error log in nginx?

NGINX writes information about encountered issues of different severity levels to the error log. The error_log directive sets up logging to a particular file, stderr , or syslog and specifies the minimal severity level of messages to log. By default, the error log is located at logs/error.

Where are PHP logs Nginx?

PHP-FPM errors are logged by default in the Nginx error log. To view the nginx error log and access log files, we can use tail to display the last 200 entries.


1 Answers

Errors are stored in the nginx log file. You can specify it in the root of the nginx configuration file:

error_log  /var/log/nginx/nginx_error.log  warn; 

On Mac OS X with Homebrew, the log file was found by default at the following location:

/usr/local/var/log/nginx 
like image 104
syava Avatar answered Sep 22 '22 15:09

syava