Skip to main content

finding error logs

You can use lsof (list of open files) in most cases to find open log files without knowing the configuration.

Example:

Find the PID of httpd (the same concept applies for nginx and other programs):

Then search for open log files using lsof with the PID:

If lsof prints nothing, even though you expected the log files to be found, issue the same command using sudo.

source: https://stackoverflow.com/questions/1706111/where-can-i-find-the-error-logs-of-nginx-using-fastcgi-and-django