As a WordPRess user, you might have encountered 500 errors many times. It is one of the common error in WordPress. So, if you’re looking for a fix for WordPress 500 error right now, then you are at the right place.

Let us first try to understand what causes the WordPress 500 error. And here lies the frustration. WordPress internal 500 error doesn’t specifically tell you the issue as is not caused due to any single specific problem.

There are many reasons why there could be 500 internal server error. You will need lots of patience to troubleshoot the internal server error.

So, let us step back to understand the 500 error – what it is? And what are the probable causes?

The HTTP 500 Error is a standard status code defined in the HTTP protocol that means a server error happened. the request from the client side is valid but the server had a problem fulfilling the client request due to a server problem.

If your website is on WordPress, that simply means the web server powering your site encountered an error on WordPress and it wasn’t able to fulfill the request.
Let us now examine some common causes and their fixes for WordPress internal server 500 error

Reasons for WordPress 500 internal server error

There can be many reasons for WordPress 500 internal server error. Some of the main reasons are

  • Corrupt .htaccess file
  • PHP memory limit issues
  • Faulty Plugin
  • Corrupt WordPress Core files

How To Fix Corrupt .htaccess file

A simple way to examine this issue is by replacing the current .htaccess file with a new .htaccess file with the correct code. Many times, when you install a plugin your .htaccess gets corrupted due to faulty code within the plugin.

Open a text editor on your PC and copy the below code snippet and paste it.

  • # BEGIN WordPress
  • RewriteRule ^index\\.php$ – [L]
  • RewriteCond %{REQUEST_FILENAME} !-f
  • RewriteCond %{REQUEST_FILENAME} !-d
  • RewriteRule . /index.php [L]
  • # END WordPress

Save the file as .htaccess file and upload it to the root folder. It will ask you whether you want to replace the file? Click yes and proceed.

Now, refresh the site on the browser. If the issue was due to faulty .htaccess it should be resolved now.

How To Solve PHP Memory Limit Exceeded Issue 

Error due to exhausting PHP memory limit is also a common issue that causes WordPress 500 internal server error. In order to fix the issue, you will need to increase the PHP memory.

Go to the root folder and locate the wp-config.php file.

Search for the following code define(‘WP-MEMORY_LIMIT’ ’64M’)

Change the ’64M’ to ‘128M’.

If this fixes the issue then it means that your problem was due to a memory issue. But you may want to know which resource is actually hogging our memory. For that, installP3 (Plugin Performance Profiler) plugin. This helps you to figure out the exact plugin which is responsible for your memory limit.

How To Solve WordPress 500 Internal Server Error Due to Faulty Plugin

If the above fixes didn’t solve your issue it may be that the cause of the issue is a faulty plugin.

To fix that, go to the root folder and locate the plugin folder. Rename the folder.
Now, check whether issue got solved or not. If it gets solved, then you need to identify the exact plugin which is causing the problem. That you can test by installing one plugin at a time. Then you can do away with that faulty plugin and report it to the author.

How To Solve WordPress 500 Internal Server Error Due to Corrupt WordPress Core Files 

If the above fixes didn’t solve your issue it may be that the cause of the issue is a faulty plugin.

To fix that, go to the root folder and locate the plugin folder. Rename the folder.
Now, check whether issue got solved or not. If it gets solved, then you need to identify the exact plugin which is causing the problem. That you can test by installing one plugin at a time. Then you can do away with that faulty plugin and report it to the author.

Conclusion 

WordPress internal server error is quite confusing and frustrating. If the above solutions don’t work then you need to contact your hosting company and get it sorted out. They may understand the problem by looking at your server log.

 

Did you encounter WordPress internal server error? How did you solve it? Let us know in the comment section.