How to Check a Website 500 Error
A 500 error may be caused by a PHP problem. Temporarily enable PHP error display to see the actual error.
Steps
- Log in to DirectAdmin or cPanel.
- Open Select PHP Version → Options.
- Find and tick
display_errors. - Reload the affected website page.
- Record the displayed error, file path, and line number.
- Untick
display_errorsafter checking.
Important
Do not leave display_errors enabled. Error messages may expose sensitive website information.
If no error appears, check the website’s error_log file or contact your website developer.
