GUIDE HTTP ERROR 500, WHAT IS IT AND HOW TO FIX IT (INTERNAL SERVER ERROR) 2020 -WAU

Home/Posts/Administración del Hosting/GUIDE HTTP ERROR 500, WHAT IS IT AND HOW TO FIX IT (INTERNAL SERVER ERROR) 2020 -WAU

What is a 500 error

It is quite common to read customer queries in the Forum or in Support Tickets asking Why is your page left blank? mainly after updating a theme or template, a plugin or module or after modifying code in a file on the web, which end up causing a error 500 by performing any of these or similar actions.

What is an http error 500?

Error 500 is an HTTP status code, this type of failure indicates that there has been a problem at the server level when loading the page or a resource within it.

This type of error is also known as internal server error or HTTP error 500.

Although you may also see it as:

  • 500 Internal Server Error
  • HTTP 500 – Internal Server Error
  • Temporary Error (500)
  • Internal Server Error
  • HTTP 500 Internal Error
  • 500 Error
  • HTTP Error 500
  • 500. That’s an error

How to fix a 500 error

Fix Error 500 when the web is not ours

It is possible that the error 500 It may be due to a problem external to us or that we have no control over it and the browser that warns us with the message internal error server.

In this case we have several ways to solve this HTTP error.

These solutions to an http error 500 are the most common since it is usually a momentary server error and is usually easily solved by reloading the browser.

Fix Error 500 on our website

Although this type of HTTP error can occur for various reasons internally and therefore be resolved in different ways, we will present the most universal solutions to this situation.

  • Not having the necessary permissions. Not having the permissions to access a folder or file, the server restricts access.
  • PHP timeout. If in the connection with any type of resource over the timeout, it will result in an error 500. So a solution would be to execute correct timeouts.
  • Htaccess. Another cause could be the Htaccess file, the solution could be to upload a copy of this file before the moment of the problem.

    In the case of not having that copy, the best thing would be to upload or regenerate a new Htaccess file, and always keeping the specific rules that we have in the previous file.

Why does a 500 error happen?

Generally when this happens it is because there is some programming failure, or a change has been made in the template or theme of the website, and also the precaution of making a Backup has not been taken.

Detecting a 500 error in time to correct it is the difference between maintaining the credibility of your regular buyers or readers, as well as that of bots that index your content, or lose positioning Now in real time! and that your metrics go to waste.

It can happen in cases where the plugin, module or extension is trying to make use of functions prohibited for security reasons, like the exec function, shell_exec, passthru, etc.

There are many causes that could generate a error 500 Internal server error on your website, but if you do not have a clue or clue it will not be easy to find the solution quickly.

Where do I find 500 Errors in error_log?

Files error_log You will find them in several folders of your Hosting, although they are usually located in the / public_html / foldererror_log or in the / public_html / wp-admin / foldererror_log in the case of a WordPress installation.

There may be error collection files in those folders where PHP files are located that have motivated the generation of entries warning of problems on the website.

Locating the error_log file in a WordPress installation

It is also possible to check certain errors from the Hosting Panel (cPanel), in the Metrics section, Mistakes, where you can get information about it.

Metric - Internal server Error

To assist in this detection process, the Apache error log. Every time one of these errors is generated, a file called error_log in which a line is entered indicating the reason for the error, the file and the line where it occurred.

Server Error Lines

This is of great help to locate the unexpected errors that appear on the web and thus be able to solve them without resorting directly to restoring the web to a moment before the problem.

Google takes the usability and user experience of your website very seriously, so it is important that you quickly detect both 500 errors and 404 errors. Your positioning is at stake!.

Through Google Search Console you can check that the robot Google has not detected errors on your page, although it is always better to anticipate and solve problems.

In the following video I explain how to access the error_log file, in order to detect the reasons that are causing the http error 500 and be able to solve them:

 

Stephan, your ally assistant!

Stephan It is an online assistant available in the Client Area, for all Websites Are Us clients, it will help you on numerous occasions to detect these errors and will provide you with clues to solve them.

  • Problems with file or folder permissions.
  • Blocking your IP or the IPs of your collaborators.
  • Active PHP version.
  • Versions of the CMS you have installed.
  • Outdated website notices.
  • PHP errors.
  • Problems with email.
  • Empty or incorrect .htaccess file notices.
  • etc…

Avoiding errors on a website throughout its useful life is almost an impossible mission, but knowing how to find these errors to correct them and avoid them in the future is an easy task to do if you have the right tools or know where to look.

By |2020-05-12T00:57:16+00:00May 12th, 2020|Administración del Hosting|