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
-
Login to cPanel.
-
Scroll down and click Select PHP Version under the “Software” section.
-
On the PHP Selector page, click the Options tab.
-
Locate display_errors from the list.
-
Check the box to enable it.
-
Changes are saved automatically.
To disable it later: Uncheck the box after you finish debugging.
For DirectAdmin Users
-
Login to DirectAdmin.
-
Go to Extra Features > Select PHP Version (or PHP Selector).
-
Click the Options tab.
-
Find display_errors in the list.
-
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
