Where is the PHP Error Log in Nginx?

Last updated on

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
1 Star2 Stars3 Stars4 Stars5 Stars 4.25 (12 votes)

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

p.s. I increased my AdSense revenue by 68% using AI 🤖. Read my Ezoic review to find out how.

1 reply

avatar
  Subscribe  
newest oldest
Notify of
Santos Valencia
Guest
Santos Valencia
Santos Valencia
9 months ago

yes, it helped