Kualo / docs
On this page

How to enable PHP error logging in cPanel

Switch on PHP error logging from cPanel's Select PHP Version tool so warnings and errors are written to an error_log file you can review when troubleshooting your site.

1 min read Updated 13 Jun 2026

When something on your site misbehaves, the PHP error log is usually the quickest way to find out why. Before you can check it, PHP error logging needs to be enabled for your account.

Enabling PHP error logging

  1. Log in to cPanel and open Select PHP Version, under the Software section.

Select PHP Version in cPanel's Software section

  1. The current PHP version and its extensions are shown.

The Select PHP Version screen showing PHP extensions

  1. Switch to the PHP Options view (labelled Switch to PHP Options in some cPanel versions).

Switching to PHP Options in Select PHP Version

  1. The PHP options for your account are listed.

The PHP Options screen in cPanel

  1. Find error_reporting and click its current value.

The error_reporting option ready to be changed

  1. Choose E_ALL from the drop-down menu to enable full error reporting, then apply/save the change.

Selecting E_ALL from the error_reporting drop-down

Where to find the errors

New PHP errors and warnings are written to a file named error_log in the folder the failing script runs from - for most sites that means your application's root folder, such as public_html.

Once you've finished troubleshooting, consider setting error_reporting back to its previous value - full error reporting can be noisy on a busy site.

Was this helpful?
Your feedback helps us find gaps in the docs.
Still need a hand?
Real people, around the clock - start a chat or open a ticket and we'll help you put it right.