PHP Error Log file location in Nginx

PHP error log file location is same as Nginx error log. The Nginx error log and access log file is located at -


To open the file using less command, you can use the +G option to check the latest entries made in the file -

$ less +G /var/log/nginx/error.log

or simply view the last 100 lines using tails command -

tail /var/log/nginx/error.log -n 100