How to use the cPanel's CloudLinux Selector to enable or disable PHP's display_errors feature

We occasionally need to debug PHP. Therefore, for security purposes, we must either allow display_errors or disable it. The display_errors function in PHP can be enabled or disabled in cPanel by utilizing the CloudLinux Selector.

1. Log in to your cPanel account.

2. In the Software section, click on Select PHP Version.

3. Click on the Options menu.

PHP options menu

Note: If the Options page shows an error related to the native PHP version, change it to a non-native version first.

4. For enabling display_errors, tick mark it. For disabling it, uncheck it.

Disabling PHP display errors

Was this answer helpful?

Related Articles

How to Change the CloudLinux Selector in cPanel to Enable or Disable PHP Extensions

You can use CloudLinux Selector to enable or disable available PHP extensions in cPanel. 1. Log...

How to Change the PHP Memory Limit in cPanel Using the CloudLinux Selector

You can modify PHP Memory Limit as per your needs using CloudLinux PHP Selector in cPanel. 1....

How to Change the PHP Version in cPanel Using the CloudLinux Selector

You can use CloudLinux's Select PHP Version to change your website's PHP Version.  There are...

How to Enable or Disable PHP's allow_url_fopen Using CloudLinux Selector in cPanel

You can use CloudLinux Selector to enable or disable the allow_url_fopen directive in cPanel. 1....

How to Enable the GD Extension of PHP Using CloudLinux Selector in cPanel

You can use CloudLinux Selector to enable GD extension in PHP via cPanel. 1. Log in to your...