How to enable PHP error reporting in cPanel
PHP error reporting is a built-in function that enables developers the control over how the error is displayed or specifically which group of errors to show. In most of the cases by default its turned off in cPanel based Webhosting, so that any unwanted error reports are not shown to website visitors. But you may need to see the error logs or error messages for debugging purposes. Let’s see how you can enable PHP error reporting in your cPanel based webhosting.
Step 1 : Login to cPanel Account with your username and password. Usually its on 2083 Port. https://yourdomain.com:2083 or https://yourdomain.com/cpanel. In some host you can access cPanel by clicking a link given in the hosting account.
Step 2: Lookout for Heading named SOFTWARE section, then Select PHP Version. Alternatively you can search for PHP in the search box and find Select PHP Version.
PHP Selector
The PHP Selector is a feature of cPanel. It may not be enabled by your Host Provider. If it's missing you ask your Host Provider.
Step 3 : After going into Select PHP Version page, go to Options Menu.
Step 4 : Then Locate the error_reporting and click on the drop-down menu to see the Options available for Selection.
E_ALL : Display Everything
E_ALL & -E_NOTICE : Report all errors without E_NOTICE
-E_ALL : Disable all Reporting
Step 5 : If the selection is successful, you will see a green box with a message confirming your settings are applied.
Thats how you can enable PHP error reporting in cPanel. In similar process you can diseable PHP error reporting in cPanel as well .
If you are looking for a reliable webhosting provider, check out our reviews!
Related Articles
- How to increase the Upload Max FileSize limit in cPanel
- How to update date.timezone from cPanel
- How to Install CentOS Web Panel (CWP) on Centos 7
- How To Switch From iPhone To Android: A Beginner’s Guide
- How to Create Hosting Packages in Centos Web Panel(CWP)
- How to update date.timezone from cPanel
- How to increase the Upload Max FileSize limit in cPanel
- How to enable PHP error reporting in cPanel.
- 7 Best AirPods Alternatives: A Comprehensive Product Analysis
- 7 Best AirPods Accessories
- iPhone 11 Pro || The King of iPhone !!!
- iPhone 11 || Close to Perfection !!!
- iPhone XR || A Solid Choice !!!
- iPad , Which One You Choose || A Complete Buyers Guide
- iPhone SE || Apple’s Shockingly Good Value Phone to Beat Android?