Where are the Apache Error and Access Logs Located?

Last updated on

To view the Apache error log and access log files, we can use tail to display the last 200 entries.

sudo tail /var/log/apache2/error.log -n 200
sudo tail /var/log/apache2/access.log -n 200

To output appended data as the logs grows, use -f.

sudo tail /var/log/apache2/error.log -f
sudo tail /var/log/apache2/access.log -f
1 Star2 Stars3 Stars4 Stars5 Stars 4.83 (6 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.

Leave a Reply

avatar
  Subscribe  
Notify of