Skip to content

Tutorials cPanel Beginner1 min read

How to Find and Read Website Error Logs

Locate PHP and web server error logs in cPanel, WordPress and on a VPS, and learn how to read the lines that explain 500 errors and broken pages.

By ZSOLNET Editorial Team Updated

Key takeaways

  • Error logs explain what a generic error page hides.
  • Read the newest lines first, and match their time to when the error happened.
  • The file path in a PHP error points to the plugin, theme or script at fault.

In cPanel

  • Metrics → Errors shows the most recent web server errors for your account.
  • PHP error_log files appear in the folder of the script that failed, for example public_html/error_log. Open them in File Manager.
  • Metrics → Raw Access lets you download access logs.

In WordPress

Enable debug logging (see How to enable WordPress debug mode) and read wp-content/debug.log.

On a VPS

sudo tail -n 50 /var/log/nginx/error.log
sudo tail -n 50 /var/log/apache2/error.log
sudo journalctl -u php8.3-fpm --since "1 hour ago"
sudo tail -f /var/log/nginx/error.log   # follow live while you reproduce the error

How to read a log line

[24-Nov-2026 09:14:02 UTC] PHP Fatal error: Uncaught Error: Call to undefined function
some_function() in /home/user/public_html/wp-content/plugins/example/example.php:42
  • Time — match it to when you saw the error.
  • Level — Fatal stops the page; Warning and Notice usually don’t.
  • Message — what went wrong.
  • File and line — where. Here, the example plugin.

Frequently asked questions

Why is my error_log file huge?

A script is logging the same warning on every request. Fix the cause, then delete the file — it's recreated when needed.

What's the difference between access and error logs?

Access logs list every request (who, what, status code). Error logs record problems. Use the error log to diagnose, the access log to see traffic patterns.

Share X LinkedIn Facebook

Log in to your account

Manage your domains, hosting and invoices in one place.

Secure connection straight to the ZSOLNET client area.

No account yet?