Your country & currency

Make yourself at home. Choose your preferred shopping currency.

Your selected country opens its KickHost website. Your shopping currency is saved. Visit country website .

Guide

How to Enable or Disable PHP’s display_errors via CloudLinux Selector in cPanel

Enable or disable PHP display_errors using CloudLinux Select PHP Version in cPanel. Steps for KickHost customers.

Share

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.

Cp cl select php version - How to Enable or Disable PHP's display_errors via CloudLinux Selector in cPanel

3. Click on the Options menu.

Cl options menu - How to Enable or Disable PHP's display_errors via CloudLinux Selector in cPanel

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.

Cl enable or disable error - How to Enable or Disable PHP's display_errors via CloudLinux Selector in cPanel

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? See KickHost hosting plans or contact our team.

Found this useful? Share it.

Using KickHost in the UK?

KickHost supports UK customers with prices in pounds sterling (£), .co.uk domain registration and a United Kingdom data centre location in Portsmouth (availability depends on the product). If you get stuck, open a support ticket from your client area.

Related: UK web hosting · .co.uk domains · contact the team

Need a hand with this?

Our team can help you choose the right domain, hosting or server and set it up properly.

Talk to our team See hosting plans