OpenZone Logo
Phone

WordPress Error 500: Error interno del servidor

Relájate y no entres en pánico. Le mostraré cómo resolver su problema.

When you see a HTTP 500 Internal Server Error message and you don’t know what to do. Your WordPress has crashed.

When did this happen? How long has your website been offline? How many customers have you lost? Is the problem more serious? Maybe you’ve lost all your data, plugins, themes and content?

Relax and don’t panic. I’ll show you how to solve your problem.

Content

Causes of HTTP 500: Internal server error

Let’s start with a bit of theory. An internal server error (HTTP 500) is a web server-side HTTP error. The HTTP status code informs you that the web page you are trying to access has internal problems. This is a generic error, and you will see the error message when the web server is unable to locate the cause. The web page server has not found another 5xx error code that can better explain why the error occurred.

It is not a problem with the user’s computer or Internet connection because the server is online. The server has encountered a configuration data problem. To prevent a recurrence of the HTTP 500 Internal Server Error, a server administrator can try to explain the causes and provide the client with additional information in the error logs.

Unlike other server errors that respond to specific irregularities in (for example, error 404), HTTP 500 Internal Server Error is a general error that is difficult to diagnose. There are several reasons why HTTP 500 Internal Server Error occurs. As the name suggests, this is an internal server error caused by the global configuration of the website:

  • redirects set in the .htaccess file;
  • defective plugin;
  • theme not working properly;
  • out of PHP memory limit on the server.

If you are looking for a more specific cause of the HTTP 500 Internal Server Error, it could be due to:

  • installation of a new plugin (e.g. to increase security);
  • plugin or theme incompatibility with WP version;
  • too much load on the server (hosting);
  • invalid PHP scripts causing an internal error;
  • incorrect plugin configuration
    permissions errors;
  • upgrading WordPress to the new version;
  • your website is too “heavy” (PHP timeout, too much traffic, too many plugins).

Whatever the reason, we will find a solution!

WordPress is a simple and stable CMS, however, as with any script, errors can also occur here. Error 500 is not the only one that can occur. Learn about the most common errors in WordPress and how to fix them.

Solution to internal server errors (error 500)

Let’s focus on three possible solutions to the problem of internal server errors:

  1. Restore the .htaccess file to its original version;
  2. Disable the plugins causing the error;
  3. Increase the PHP memory limit for WordPress.

Restore the .htaccess file

Some plugins, for example security plugins, interfere with the .htaccess file. This is a PHP file that contains commands for the server. If it contains mutually exclusive rules, the server will not be able to complete the task and will display a 500 Internal Server Error message.

The first thing to do is to access your web server via FTP. You will find the .htaccess file in the WordPress installation folder. Check if there are more rules in this file than in the default one. If so, remove the redundant ones and don’t worry if the HTTP error persists.

It may be enough to be patient now because the server may need up to several minutes to update the .htaccess rules. You can also try clearing the browser cache.

Permission error

One of the possible reasons for an error status code 500 is that the permissions of the file or folder are incorrect. These permissions are expressed as numerical values. The value “755” (rwxr-xr-x) is the default setting, and if you accidentally change it, you may get a “HTTP Error 500” message. It is possible that by setting all values to “755” the error will disappear.

Disabling plugins and themes that can cause 500 Internal Server Error in WordPress

Your task is easier if the error 500 Internal Server Error is displayed only on the front end of your website and you can easily access the WordPress dashboard. However, I will provide you with a solution that will work even if you don’t have access to the admin panel (when it also returns an error message).

500 Internal Server Error

I have access to the WordPress administration panel

In the first case, go to the panel, deactivate all plugins and update your website. Has the 500 Internal Server Error stopped occurring? If so, there is a problem with one of the plugins. Enable them one by one, and before enabling each of the following, check if an error occurs on the website. This method will allow you to find the culprit of the HTTP error.

The administration panel also shows an error 500 Internal Server Error

In this case, use the same method: deactivate all plugins and activate them one by one. The question is, how to deactivate installed plugins without access to the WordPress dashboard? Log in to your FTP or SSH server. Go to the wp-content/plugins and wp-content/themes folders and rename the plugins and themes folders there.

When WordPress detects that a plugin (or theme) folder has been renamed, it will treat it as a new plugin. The new folder name can be anything you want. Renaming the plugin folder will deactivate plugins because WordPress will not find it. The plugin in the new folder (folder with a new name) will be detected as a new plugin and deactivated by default.

If the site works after this action, you can rename the plugin folders again. If, despite renaming the folder, WordPress does not automatically enable the plugin, proceed as in the previous case – run the plugins one by one to find the culprit.

Increase PHP memory limit

As the number of visitors to your website increases, so does the server load because plugins need memory for their processes. The more visits your website gets, the more processes the plugins run. Now I will tell you how to increase the memory limit for your WP. Again, log in to FTP. In the WordPress folder, you will find the wp-config.php file.

Go to edit it. At the end of the file, insert the following code:

define(‘WP_MEMORY_LIMIT’, ‘128M’);

Try different configurations: 128M, 256M, 512M. These are the values indicating the memory limit in megabytes. They are stored without B, i.e. 128M, not 128MB. However, you cannot change it indefinitely. Your hosting has its memory limitations, and you cannot exceed them.

It may turn out that this amount of memory is not enough for your site. Find out how much memory your hosting plan has allocated. You can choose a hosting where you don’t have to worry about technical parameters. A specialist from a hosting company will transfer your website for free.

When your hosting plan offers too little memory, changing the limits in the wp-config file, for example, to exceed the capacity of your server, will have no effect.

How to get more out of your accommodation?

I will give you two more tips. Upgrade the PHP version of your server. New PHP versions bring many additional performance optimizations. Then it turns out that the same plugins and themes need less memory to run.

The second tip is especially useful if you are still using the shared hosting you bought as a beginner WordPress website owner because it was the cheapest. Choose a new, experienced and reliable web hosting provider. Efficient web servers will allow your website to load properly.

One of the best hosting providers is OpenZone. If you focus on WordPress and only have one website, choose WordPress Hosting. It is optimized specifically for this CMS. All settings and configurations are with WordPress in mind. The hosting panel is integrated with the WordPress Dashboard, so you can manage plugins and themes directly from the hosting panel, which is very convenient. In addition, you get a set of premium plugins and themes.

If your hosting needs go beyond a single WordPress page, buy a VPS and get rid once and for all of the Internal HTTP Server Error 500 caused by PHP timeouts, busy reboots, a corrupted database or exhausted PHP memory limit, and other server-side errors.

A package will provide you with server resources for your exclusive use. You will receive the processor power expressed in number of cores and RAM for your exclusive use. This gives you full control over what happens to your web sites and applications. OpenZone also allows you to seamlessly scale your hosting plan. As soon as you run out of resources, you will be able to instantly upgrade to one that meets your needs.

Conclusion

You already know that 500 Internal Server Error in WordPress is not a serious threat to your website. Just follow the tips and everything will start working. The most important thing is that this is a configuration error, none of the files on your site have been corrupted or lost. All you have to do is find out the cause and get rid of it.

However, always remember to make regular backups, especially when installing or updating plugins that interfere with the website configuration or the .htaccess file. Also, look for fast, well-configured hosting that provides security, performance and a good price.

Do not forget to choose the best hosting from the OpenZone hosting platform. Get 24/7 support of our team. Our enhanced infrastructure focuses on auto-scaling, performance and security.

Let us show you the difference! Take a look at our plans!