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

PHP can show errors in the browser and write them to error_log files. On a live website, errors should not be shown to visitors, because they reveal details of your code. Keep logging on, so you can still find problems.

Hide errors from visitors

  1. Log in to cPanel (for example at https://yourdomain.com:2083, or from the Ucartz client area).
  2. Open Software › MultiPHP INI Editor.
  3. On the Basic Mode tab, choose the domain.
  4. Set display_errors to Disabled.
  5. Click Apply.

Log fewer errors, or stop logging

Switch to the Editor Mode tab, choose the domain and add or change these lines, then click Save:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
; log_errors = Off   (remove the semicolon to stop logging completely)

We do not recommend switching logging off: the log is how you find broken plugins. Fix the errors instead, or delete old error_log files now and then.

Note: Some applications set their own error settings. In WordPress, check that define('WP_DEBUG', true); is not left in wp-config.php. On CloudLinux servers the same options are in Software › Select PHP Version › Options.

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.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket