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.
Login in to the cPanel
On the Cpanel Page, go to the Software Section
Navigate to the ‘Select PHP Version’
Click to ‘Switch to PHP Options’
To turn on the error reporting for PHP errors, check the “display_errors” checkbox, to turn off, uncheck this checkbox
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
My name is Benson Karue, I was Software Engineer Telenet Co LTD before I quit and joined YouTube and Udemy as an instructor. I have real-world software experience and have a Bachelor’s degree in Mathematics and Computer Science with 6+ years of coding experience and winning several competitions and coding challenges.