Where is the PHP Error Log in Nginx?

Last updated on | one reply

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.

sudo tail /var/log/nginx/error.log -n 200

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

1 reply

Leave a reply

Your email address will not be published. Required fields are marked *