HTTP Error 500 ⚡️ Redirect 301

Internal server error? What is it and how can it be fixed?

At the HTTP Error 500 status code it is one internal server error.

This means that there is currently some technical problem on the web server, i.e. where the website administrator operates the website. The error number 500 (status code 500) also indicates that this problem cannot be defined more precisely by the web server.

Browser reports: 500 Internal Server Error

Error message in the browser: 500 Internal Server Error

the Standard error message at a variety of web server reads:

Internal server error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Which in German has something like the following statement:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator [es wurde keine E-Mail-Adresse angegeben] and let them know when the error occurred and any other actions you may have taken that may have caused the error.

See the server error log for more information about this error.

Whereby instead of the e-mail address of the server admin not defined here “[no address given]“ usually a contact email like “[email protected]“ is stated. By default, the server administrator is prompted to briefly report the occurrence of this problem.

Website not working: HTTP Error 500

Website not working: HTTP Error 500

What can I do as a website visitor in this case?

Normally, as a visitor to such a website, we can HTTPError 500 do nothing. Here you have to wait and try to call up the page again in a few minutes or even hours.

Frequent updating by pressing the F5 key does not do anything here, it may even hinder the error elimination of this status code! The problem must be remedied by the server or website operator himself.

In a few cases, it can help in the web browser Delete cookies and temporary internet files. Especially with the cookies, information could be stored locally that, due to an update on the website, has now led to an unforeseeable problem.

Even large sites like Facebook, Amazon or Ebay occasionally have the problem of a server error 500 occurring for a short time. This is not good (especially for business) but unfortunately they happen. As a rule, however, the spook is usually eliminated after a few seconds, since these companies have automatisms that take effect immediately and eliminate these errors immediately.

How to fix an HTTP Error 500 as a webmaster?

Since this is an error in interaction with the web server, this problem can of course occur in all systems – such as WordPress, Typo3, Joomla, Drupal, Shopware, etc.

If you operate the website yourself and have recently made changes to template files or especially the .htaccess file made, you should undo this for the time being and see if the server error is related to it. Often there are incorrect entries in the .htaccess, caching directories that cannot be written to or simply errors within PHP.

Troubleshooting in the error logs

With most hosters such as All-Inkl., 1und1, Strato, Domainfactory etc. you can also Server Log Files (Error Logs, Server Logs) generate and view. These can be downloaded either via the respective administration interface or via FTP and analyzed on your own computer.

For example, with all inclusive. to save the error logs – they are deactivated by default – the following entry in the .htaccess file of the respective website is sufficient:

php_flag log_errors on
php_value error_log "/www/htdocs/w0123456/logs/error.log"

Of course, the path “w0123456” has to be adjusted! From then on in the directory /logs in a plain text file error.log all PHP errors are continuously noted.

At first glance, these appear quite confusing for non-system administrators. But anyone can easily keep an eye out for the HTTP status 500 and the date and time the error occurred in any text editor. In many cases, it is directly in which file the problem occurred or what caused the conflict.

Internal Server Error in WordPress

Debugging often helps with WordPress installations. For this in the wp-config.php before the line /* That’s all, stop editing! Happy blogging. */ enable Dubug mode:

// Debugging einschalten
define('WP_DEBUG', true);

// Logfile aktivieren, standardmäßig unter /wp-content/debug.log
define('WP_DEBUG_LOG', true);

// Aktiviert Fehlermeldungen zur Anzeige auf dem Bildschirm
define('WP_DEBUG_DISPLAY', true);

WordPress debug log

WordPress debug log

The problem can be localized and rectified using error messages within the debug logs or a corresponding output on the screen.

Important! At the end, delete the file /wp-content/debug.log and switch off debugging in wp-config.php again. Either the 3 WP_DEBUG-Set values ​​to false or simply delete these lines again.

If that doesn’t help either, the only thing that will help is a call to the hoster and a request for support from their support team, which may be subject to a fee.

Questions, comments and personal experiences

Please simply use the comment function here in the blog to share your own experiences in fixing HTTP 500 errors with other readers. But I’m also happy to answer questions here. Instructions and notes on other HTTP status codes follow.

WhatsApp Facebook Twitter Pinterest Reddit