> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Enable or Disable PHP's display_errors via CloudLinux Selector in cPanel?

Sometimes, we need to debug [PHP](https://help.ex2.com/en/article/what-is-php-and-what-is-it-used-for-x4xvdq/?bust=1784054117446). Hence, we need to enable display_errors or disable them for security reasons. You can do this using the [CloudLinux](https://help.ex2.com/en/article/what-is-the-cloudlinux-os-1v8651h/?bust=1784568161284) Selector to enable or disable PHP's display_errors in [cPanel](https://help.ex2.com/en/article/what-is-cpanel-vq3toz/?bust=1784206091492).

# Here's how to enable or disable PHP's display_errors via CloudLinux Selector in cPanel

1. [Log into your cPanel interface](https://help.ex2.com/en/article/how-to-log-in-to-my-cpanel-account-xyoqm0/?bust=1676305236426) "https://www.domainname.com:2083" or by going through your client area.

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

![](https://www.ex2.com/clients/img/cP-CL-Select-PHP-Version-icon.gif)

3. Click on the Options menu.

![](https://www.ex2.com/clients/img/CL-options-menu.gif)

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.

![](https://www.ex2.com/clients/img/CL-enable-or-disable-error.gif)