Showing PHP errors on your site can be useful for finding and fixing bugs in your code.

But it can also be dangerous if your site is open to the public, as these errors may reveal sensitive information or vulnerabilities that can be exploited by hackers. Therefore, we advise you to only enable this feature if your site is under development or has low traffic.

If you don’t enable this feature, you may encounter a blank screen or a generic error screen that doesn’t give you any clue about what has gone wrong. This is also known as a WSOD (White Screen of Death).

To enable the display of PHP errors, you’ll need to access your website via Terminal / SSH and edit your configuration file.

You can access the PHP configuration files for your web application under the following path:

/etc/php-extra/<web app name>.conf

Open the desired file in a text editor (such as nano), and then add or paste the following line in the file:

php_admin_value['display_errors'] = 1

Save and exit the file editor. You may need to restart your server for the changes to take effect.