As an Amazon Associate We earn from qualifying purchases.
Hosting Control PanelResources

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. or In some host you can access cPanel by clicking a link given in the hosting account.

Login to cPanel with Username and Password
Login to cPanel via link in 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.

Search for 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.

PHP Selector

Step 4 : Then Locate the error_reporting and click on the drop-down menu to see the Options available for Selection.

Error Reporting Level
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

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button