All Collections
Website
Website Troubleshooting
How to Fix 500 Internal Server Error
How to Fix 500 Internal Server Error

Fixing 500 Internal Server Error on Hostinger

Updated over a week ago

The 500 Internal Server Error indicates that the server encountered an unexpected problem that prevented it from completing a request made by your web browser. This could be due to a variety of reasons, such as a problem with the website's code, a faulty plugin, or a technical issue with the server itself.

To solve it properly, we suggest enabling PHP error messages first. This way, it will be easier to identify the particular issue.

If nothing changes, and you still see the 500 error after enabling the PHP errors display, try changing the website's PHP version and enabling displayErrors on different versions. Once that’s done, you can proceed with the suggestions below 👇

WordPress-Based Websites

If your website is created with WordPress, refer to this comprehensive tutorial: How to Fix 500 Internal Server Error on WordPress

Other CMS

If your website is created using a CMS different from WordPress, perform the following action according to the specific error message:

  • Call to undefined function: change your PHP version. Try all available versions; if the issue persists across all, review the code in the file mentioned in the error

  • Parse error (Syntax Error): check the file mentioned in the error message for any syntax errors

  • Warning Access Denied: double-check the database credentials in your website's configuration file

  • Fatal error, Failed opening required: it means that your site is calling for a file that does not exist or cannot be executed. Check if the file mentioned in the error message actually exists in the correct path

  • Deprecated: while lowering your PHP version may temporarily fix the issue, for security reasons, it is strongly recommended that you update your code to the latest PHP version

If the error persists after trying these options, you can restore your website to a previously working state.

Did this answer your question?