DOCS

PHP errors and logs

Where to find error_log, how to enable error logging and how to read errors when troubleshooting.

Posodobljeno 05.10.2026. 2 min branja

When a site reports a 500 error or is blank, the cause is almost always written in a log. Reading the log is the first step of every troubleshooting.

Where the logs are#

  • cPanel → Metrics → Errors: the last few lines of server errors for your domain.
  • The error_log file: PHP usually writes it to the folder where the error occurred (e.g. public_html/error_log). Open it in File Manager.
  • Raw logs: some settings also give access to access and error logs in Metrics → Raw Access.
  1. Repeat the action that causes the error.
  2. Open Metrics → Errors or error_log.
  3. Look at the last lines: they contain the time, error type, file and line number.
  4. Look up the message: e.g. "Parse error" (syntax), "Fatal error: Allowed memory size" (PHP settings), "Call to undefined function" (PHP extensions), "Cannot redeclare" (duplicate function, often two plugins).

Enabling error logging#

In MultiPHP INI Editor set log_errors to On and display_errors to Off (so visitors do not see the messages). Details: PHP settings. For WordPress see WordPress white screen.

Common errors#

If you cannot find the cause, send a ticket and attach the last lines of the log.

Vam je bil ta članek v pomoč?

Sorodni članki

Still need a hand?

Open a ticket and we will reply by email. The whole team sees your request.