The display_errors option shows PHP error messages in the browser. It helps when you debug a problem, but it should be off on a live website.
Sometimes, we need to debug PHP. Hence, we need to enable display_errors or disable them for security reasons. You can do this using the CloudLinux Selector to enable or disable PHP’s display_errors in cPanel.
1. Log in to your cPanel account.
2. In the Software section, click on Select PHP Version.
![]()
3. Click on the 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.

Turn it off on live websites
Error messages can reveal file paths and other details that attackers can use. Keep display_errors off in production and read errors from logs instead.
Use it for short debugging
Enable it, reproduce the problem, copy the error, then switch it off again. If the Options page shows an error, change to a non-native PHP version first.
Frequently asked questions
Where can I see errors if it is off? Check the error_log file in your website folder or the Errors page in cPanel.
Why do I see a white screen? A fatal error may be hidden. Turn on display_errors briefly to see it.
Related guides
Need cPanel hosting in Kenya? See KickHost hosting plans or contact our team.
Found this useful? Share it.
