ADVERTISEMENT
Turn on off the php errors display for pages of your website in the cPanel

How to Turn on/off Error Reporting for All Pages in cPanel




Many versions of cPanel have PHP error reporting and logging turned off by default for security purposes. Under this article am going to illustrate how you can turn on/off the PHP error reporting for all pages in cPanel.

PHP error reporting on the cPanel is very much important especially when testing and developing your website. On the other hand, some cPanels might have PHP error reporting turned on by default and you would not want that to happen.

I am going to provide a step by step demonstration on how to either turn on or turn off PHP error reporting for all pages of your website in the cPanel.

How to Turn On/Off the Error Reporting for All Pages in cPanel

In order to be able to log or display PHP errors for the pages of your website, you need to turn on the PHP error reporting from the cPanel.

Following are steps to turn on or off the PHP` error reporting.



  1. Login in to the cPanel

  2. On the Cpanel Page, go to the Software SectionPHP error reporting on the cPanel

  3. Navigate to the ‘Select PHP Version’select php version

  4. Click to ‘Switch to PHP Options’

  5. To turn on the error reporting for PHP errors, check the “display_errors” checkbox, to turn off, uncheck this checkbox

  6. Also for select the E_ALL for the error reporting section

Following the above instruction will turn on or off the error reporting for all the pages of your website in the cPanel