Changing cPanel Shared Hosting Account's PHP Error Handling

You can prevent cPanel shared hosting accounts from displaying PHP error messages on your website by using a PHP initialization file (more info).

You can either edit, upload, or create a file with the following line in it:

display_errors = Off

Once you make that change, cPanel no longer displays PHP errors on your website. Instead, it stores the error information in a file called error_log in the same directory as the PHP script that produced the error.


Was This Article Helpful?
Thank You For Your Feedback
Glad we helped! Anything more we can do for you?
Sorry about that. How can we be more helpful?