How to Fix Error 500 in WordPress

The 500 Internal Server Error is one of those errors that most newbies panic about. This is an error that can have multiple causes, making it even more complicated to diagnose.

The most common reasons for WordPress are a Corrupt .htaccess file, an overflow of your memory limit with PHP, or improper file permissionsHowever, there can also be other possible causes, e.g. B. an overload of your hosting plan or an issue with your web hosting provider.

Regardless of the cause, there are many ways to troubleshoot and repair your website, including Restore your website from a backup.

Save and recover

Since you need to make serious changes to some of your system files and similar changes, it’s a good idea to backup your website in case the situation gets worse. This way you can restore it. How to fix WordPress 500 internal server error

So that you can start by learning how to create backups of your website, we have various tutorials for you. Here is a List of plugins you can use for this.

Disable all plugins and themes

Sometimes a plugin or theme can be the cause of the error. A plugin would have made changes to your database or files and rendered your website unavailable.

if your planWeb hosting is shared or if you have a VPSYour web hosting company may also have restrictions on the plugins you can install on your website. Enabling a banned plugin may be enough to suspend your blog.

If there is an internal server error, you will not be able to access yours dashboard to disable your plugins and themes, However, you can do this manually by accessing the files on your website.

Go to File Manager in cPanel and locate your website directory. First, disable your plugins by temporarily renaming them.

Go to “wp-content/plugins/ And select each folder and rename it (you can just add a “-disabled” suffix).

renamed file CPANEL WordPress plugin

With all plugins disabled, check if your site is available. If so, restore the names of all your files until you find the source of the problem, checking your website each time. If an error occurs, the last plugin to restore is the culprit.

It can also be useful to download a fresh copy of the default WordPress theme, especially if you’ve been hacked. You can download a copy from, Unzip the theme folder and add it via your cPanel or FTP.

If you installed a first WordPress theme and have a backup copy of that theme on your site, you can delete it. First, delete the version of Twenty Sixteen installed on your blog before submitting the new version. If the problem is fixed, you’ll know who the culprit was.

Fixed a corrupt .htaccess file

Another likely cause of an internal server error is a corrupted .htaccess file. Replacing the current copy with a new one allows you to save your website and get it back online.

Discover How to manage files and folders WordPress

Now you should create a backup of your website which is required before replacing your .htaccess file. However, keeping an extra copy can be helpful so that you can restore your site faster if modifying your .htaccess file makes the situation worse. .

In the cPanel go to the file manager and navigate to the directory where your website is located. Go to settings and check if hidden files are visible. If not, check the box and save your changes.

Go ahead and discover How to fix media library stopped working on WordPress

In the root directory of your website you will find a file called .htaccess. Download this file to your computer.

Now create a new .htaccess file. You can do this in cPanel but you must delete the old file.

Creation of a new file from the cpanel

When your new file appears in the list, select the file and click Edit. In the file editor, add the following rules for individual WordPress installations:

# BEGINNEN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^ index .php $ - [L] RewriteCond% {REQUEST_FILENAME}! -f RewriteCond% {REQUEST_FILENAME}! -d RewriteRule. /index.php [L] # ENDE WordPress

For multisite networks with subdomains configured, add the following rules instead:

RewriteEngine On RewriteBase / RewriteRule ^ index.php $ - [L] # füge einen abschließenden Schrägstrich zu / wp-admin hinzu RewriteRule ^ ([_ 0-9a-zA-Z -] + /)? Wp-admin $ $ 1wp-admin / [R = 301, L] RewriteCond% {REQUEST_FILENAME} -f [OR] RewriteCond% {REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^ ([_ 0-9a-zA-Z -] + /)? (Wp- (Inhalt | admin | enthält). *) $ 2 [L] RewriteRule ^ ([_ 0-9a-zA-Z -] + /)? (. *. php) $ 2 [L] RewriteRule. index.php [L]

For those whose subdomains are configured as subdirectories:

RewriteEngine On RewriteBase / RewriteRule ^ index.php $ - [L] # füge einen abschließenden Schrägstrich zu / wp-admin hinzu RewriteRule ^ wp-admin $ wp-admin / [R = 301, L] RewriteCond% {REQUEST_FILENAME} -f [OR ] RewriteCond% {REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^ (wp- (Inhalt | admin | enthält). *) $ 1 [L] RewriteRule ^ (. *. Php) $ $ 1 [L] RewriteRule. index.php [L]

Save the file and visit your website to see if that solves the problem. You can also add other rules you inserted one by one to see if those changes caused the error (this takes a while).

Also, make sure your changes don’t contain any syntax errors.

Increase PHP memory limit

You can also try increasing the PHP memory limit if none of the troubleshooting steps outlined so far have worked. The plugins and scripts you use on your website need PHP memory to work.

How to fix 500 internal servers WordPress error 1

Discover these 4 methods to increase WordPress memory max limit

When a browser requests these plugins and scripts, it loads them from your website’s PHP storage. Increasing this limit would bring more memory, so less “crash” is normally caused when the script exceeds the allocated memory.

Check the version of PHP

Sometimes the plugins and scripts you use require a specific version of PHP. If you are using an incorrect version, this may be the cause of the internal server error.

server information

You can check the version you are currently using for your website in cPanel by logging in and clicking Server Information.

Enable debugging and logging

If your site isn’t backed up yet, you probably have a rare problem and you can enable WordPress debug mode to fix the problem (at least that way you can see the problem in detail).

Besides debugging, front-end error reporting can also be viewed. It’s also important to enable logging so that your website visitors don’t see the additional error messages when they disclose information on your website that could potentially be used by hackers.

Drehen // Debuggen wir definieren ( 'WP_DEBUG', true); // WordPress Sagen Sie alles zu protokollieren, um /wp-content/debug.log define ( 'WP_DEBUG_LOG', true); Schalten Sie // die Anzeige von Fehlermeldungen ist Ihre Website definieren ( ‚WP_DEBUG_DISPLAY‘, false); // für eine gute Maßnahme, können Sie die Folge Code aussi hinzufügen, qui Fehler von verstecken weiß zu sein auf dem Bildschirm angezeigt @ini_set ( ‚display_errors‘, 0);

Contact your host

If all else fails, contact your web hosting provider as they may already be aware of an issue that is out of your reach. Your host can also tell you if you’ve used all the allocated resources.

In this case, all you have to do is upgrade your web hosting plan or switch to a completely different plan, e.g Switch from shared hosting to a VPS or from a VPS to a dedicated server.

That’s about all you need to know to fix this type of error. ” 500 internal server error “.

Also discover some premium WordPress plugins

You can use other WordPress plugins to get a modern look and feel and optimize the grip of your blog or website.

Here we offer you some premium WordPress plugins that will help you with that.

1. irritable

Touchy is a premium WordPress main menu and mobile menu plugin. Designed primarily for smartphones, it’s fast, responsive, and extremely comfortable to use. Not only has Touchy been thoroughly tested on various mobile devices, but it also works great on desktop browsers.Sensitive

It has its own logo section, call-to-action buttons, a search function, a back button, and a multi-level dropdown menu.

Touchy can serve as a complete navigation menu and header solution for any WordPress theme. In addition, Touchy is extremely customizable. With a few clicks you can change the color of an element, change the positioning options, hide one of the buttons on the menu bar, replace the functions of the buttons, change the transparencies, etc.

Download | demo | web hosting

2. WP Pro Forum System

WP Pro Forum System is a WordPress plugin that allows you to add a beautiful and user-friendly forum to your website. It has many powerful features that can be used to create a professional-looking forum.Forym modern discussion forum for WordPress

The forum was created to run on the public interface of your site, but admins can manage all forums, topics, replies, categories, and labels from the dashboard.

In addition, the WP Pro Forum system offers certain advantages such as a functional translation thanks to the included mo / .po files, the integration of many templates that match the look and feel of your website, or even custom filters.

Download | demo | web hosting

3. WP BAN users

BAN Users WordPress plugin is designed to allow site administrators to prohibit (disable, suspend, etc.) users from connecting to their WordPress account. You also have the option to change the status of your items. For example, by defining them as projects and hiding them from the public.wp-ban user

A user can be banned from the user table by the administrators or via their profile. It also offers various configurable options that allow users to control how this plugin is implemented. It can redirect users to a personalized support page or send them a personalized email notification.

Download | demo | web hosting

Recommended Resources

Find out about other recommended resources to help you create and maintain your website.


It! That’s it for this tutorial. We hope this was of last help to you to fix the error. ” 500 internal server error On WordPress. Don’t hesitate Share it with your friends on your favorite social networks.

However, you can also use ours resourcesIf you need more elements to carry out your website creation projects, consult our guide on the WordPress blog creation.

If you have any suggestions or comments, leave them in our section commentaires.

Previous post WordPress: Find & Fix 500 Internal Server Error
Next post Fix Error 500 Internal Server Error in WordPress