Skip to content

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