انتقل إلى المحتوى

الدروس cPanel مبتدئ1 دقائق قراءة

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.

بواسطة فريق تحرير ZSOLNET آخر تحديث

هذه الصفحة غير متاحة بالعربية بعد، لذا تُعرض بالإنجليزية.

أهم النقاط

  • 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.

الأسئلة الشائعة

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.

شارك X LinkedIn Facebook

الدخول إلى حسابك

أدِر نطاقاتك واستضافتك وفواتيرك من مكان واحد.

اتصال آمن مباشرة مع منطقة العملاء في ZSOLNET.

ليس لديك حساب؟