How to Enable display_errors in PHP via PHP Selector (cPanel & DirectAdmin)

Certainly! Here’s the clean version without emojis:


How to Enable

display_errors

in PHP via PHP Selector (cPanel & DirectAdmin)

 

You can enable display_errors to show PHP errors directly on your website — useful for debugging during development. This guide explains how to enable it using PHP Selector in both cPanel and DirectAdmin.

 

Important Note:

Only enable display_errors temporarily for debugging.

Make sure to disable it again once you are done to avoid exposing sensitive error information on your website.


For cPanel Users

  1. Login to cPanel.

  2. Scroll down and click Select PHP Version under the “Software” section.

  3. On the PHP Selector page, click the Options tab.

  4. Locate display_errors from the list.

  5. Check the box to enable it.

  6. Changes are saved automatically.

 

To disable it later: Uncheck the box after you finish debugging.


For DirectAdmin Users

  1. Login to DirectAdmin.

  2. Go to Extra Features > Select PHP Version (or PHP Selector).

  3. Click the Options tab.

  4. Find display_errors in the list.

  5. Set it to On using the dropdown.

 

To disable it later: Switch it back to Off after debugging.


Optional for WordPress Users

 

If you use WordPress, you can also enable error display by editing the wp-config.php file:

define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);

To disable it again:

define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

Final Reminder

  • Do not leave display_errors enabled on live or production sites.

  • Always disable it after troubleshooting to maintain site security.

  • For safer debugging, consider checking the error_log file instead.

 

For further assistance, please visit: https://www.icore.com.my/support

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Obtain cPanel Login Information from Your Current Hosting Provider for Transfer to iCoreHosting

How to Obtain cPanel Login Information from Your Current Hosting Provider for Transfer to...

How to Reset Your Email Login Password via cPanel

If you've forgotten your email login password or need to reset it for security reasons, you can...

How to Log into cPanel Through iCore Hosting Billing Portal

How to Log into cPanel Through the iCore Hosting Billing Portal Table of Contents Service...

How to Connect Outlook Email for the cPanel Control Panel at iCoreHosting

How to Connect Outlook Email for the cPanel Control Panel at iCoreHosting This guide provides...

How to Create a MySQL Database in cPanel

Creating a MySQL database in cPanel is a straightforward process. Follow these steps to set up a...