Skip to content

500 Internal Server Error

HTTP Code 500 means that your application has crashed. This is a generic error message that indicates something went wrong on the server side, but it does not provide specific details about the cause of the error.

Common Causes

  1. Application Crashes: You have bad code in your application.
  2. Bad .htaccess rules: You have bad rules in your .htaccess file.

Getting the real error message

  1. Login to your control panel
  2. Go to "Alter PHP Config"
  3. Choose your domain and enable display errors.
  4. This should give you a more specific error message that will help you identify the problem. If that did not do anything, it is probably that display errors is disabled in your application code. You will need to enable it in your application code to see the error message. You may try to comment out these specific lines:
php
ini_set('display_errors', 0);
error_reporting(0);

If you cannot find these lines, you may try to add the following lines at the top of your index.php file:

php
ini_set('display_errors', 1);
error_reporting(E_ALL);

If you do not understand the error message, you may try to look it up on Google or ask your favourite LLM.

If the error points to a missing PHP module, it is likely that this software is not supported on Spookhost. See Our enabled PHP extensions.