Sometimes, your website may display PHP errors or warnings directly on the frontend. While these messages can be useful for developers during debugging, they can look unprofessional and may expose sensitive information about your website’s configuration.

To maintain a clean and secure website appearance, you can easily hide these error and warning messages directly from cPanel. Follow the steps below to disable the display of PHP errors and warnings.

Please refer to the following steps to hide errors and warnings displayed on your website from cPanel.

  1. Log in to cPanel.


  2. Click on the Select PHP Version option on the Software panel.


  3. Click on the Options tab.


  4. At the display_error option, untick the box if you want to disable/ hide the errors and warnings displayed on your website. Tick the box if you are looking to display the error on your website.



 



Conclusion:

By disabling the display_errors option in cPanel, you can prevent PHP errors and warnings from being shown on your website’s frontend. This keeps your site looking professional and helps protect sensitive technical details from being visible to visitors.

If you need to troubleshoot issues later, you can temporarily re-enable this setting or check your error logs from the Errors section in cPanel.

Was this answer helpful? 1 Users Found This Useful (2 Votes)