Skip to content

How to Enable PHP errors to Display on Web Browser?

Updated 1 min read

Updated: 28 September 2026 · Applies to: cPanel & WHM 138 (Jupiter theme)

Showing PHP errors in the browser helps while developing. Never leave it on for a live site, because errors reveal details of your code.

cPanel

  1. Log in to cPanel (for example at https://yourdomain.com:2083, or from the Ucartz client area).
  2. Open Software › MultiPHP INI Editor and choose the domain.
  3. Set display_errors to Enabled and click Apply.

In your own code (temporarily)

ini_set('display_errors', '1');
error_reporting(E_ALL);

Turn it off again when you are done; the errors are still written to the error_log file.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Linux server management

hardening, patching, monitoring and automation for Ubuntu, Debian, RHEL and AlmaLinux.

Was this answer helpful?

Still stuck? Open a ticket