How to Turn Off PHP Error Messages in Hostinger

Disabling PHP error messages

Updated 2 weeks ago

If you do not want PHP errors to be displayed on your website, all you need to do is open HostingManage, search for PHP Configuration on the sidebar and click on it:

Hostinger hPanel sidebar with PHP Configuration option highlighted under Advanced

Once there, open the PHP options page and remove a checkmark from displayErrors (display_errors) parameter. If you do not want errors to be logged as well, remove a checkmark from logErrors (log_errors) as well:

Hostinger PHP options showing displayErrors and logErrors settings highlighted

Make sure to save changes before leaving the page 😊

If the mentioned parameters were not chosen or errors keep displaying even after disabling them, check additional options for disabling errors.