Enable error display

Modified on Sat, 11 May at 7:21 PM

By default, error display is disabled; this is done to increase the security of hosted sites. If the site shows an error code 500 or a white screen, then add the line php_value display_errors 1 to the .htaccess file. If after adding this line errors are not displayed, then their output must be enabled from the content management system (CMS).

If it is not possible to output errors, then you can use the recording of errors to a file; to do this, use the log_errors and error_log directives. You can set their values via the .htaccess file (note that the path to the file must be complete):

php_value log_errors 1
php_value error_log /home/username/errors.txt

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article