How to Enable PHP Error Display

PHP error display can be enabled using a .user.ini file.

To enable PHP error display:

  1. Navigate to your website's public_html directory.
  2. Open the .user.ini file.
  3. If the file does not exist, create a new file named:
    .user.ini
  4. Add the following line:
display_errors = On

Save the file. PHP errors will now be displayed when visiting the website.

Important: Displaying PHP errors on a live website may expose sensitive information. After troubleshooting is complete, remove the setting or change it to:

display_errors = Off
Was this answer helpful? 0 Users Found This Useful (0 Votes)