Hosting

PHP error 500 log

If your website returns a 500 error, you need to see the details of the PHP error causing it. To generate a debug log, edit your .htaccess file and add this content:

php_flag display_errors On
php_flag display_startup_errors On
php_value error_reporting -1
php_value error_log /home/YOUR-USER/php_error.log

Do not forget to replace YOUR-USER with your hosting account username.

Then visit the page that is throwing the error (or wait for the error to happen again). You will find the detailed error information in the specified file (php_error.log).

Once you finish debugging, remove these lines from .htaccess: displaying errors in production exposes sensitive information about your website.

Any questions? Contact our support team and we will help you.