[Solved] Fix 500 internal server error in WordPress | WordPress Errors

500 internal server error | WordPress| Solved

Are you facing 500 internal server error? Internal server error means the server is unable to fulfill your request and it is due to misconfiguration at the server-side. It is one of the most common WordPress errors. As this error doesn’t give more useful information so many beginners can’t easily debug it and find it quite frustrating. So, In this guide, I will show you the solution for 500 internal server error in WordPress.

The 500 internal server error in WordPress can be caused by an error during the execution of any policy within Edge or by an error on the target/backend server. The HTTP status code 500 is a generic error response. which means that the server encountered an unexpected condition that prevented it from fulfilling the request made by the client.

What causes 500 internal server error in WordPress?

In WordPress, internal server error can be occurred due to plugins, themes, or maybe other stuff also can cause this error like corrupt .htaccess file or PHP memory limit. Sometimes, an internal server error also shows up when you are trying to access the wp-admin area but the rest of the site works fine. So, let’s start troubleshooting 500 internal server error in WordPress.

1. How to Fix Corrupt .htaccess file in WordPress?

Before we do anything, first we have to check whether the .htaccess file is corrupt or not. To do so, login into your cPanel account and then navigate to file manager now locate the .htaccess file in your WordPress website files. Now, rename the .htaccess file

Follow the given instruction to repair .htaccess file:

  1. Login to your cPanel account and then go to File Manager.
  2. Now, Go to your website’s WordPress files.
  3. Find the .htaccess file and then delete it.

Edit htaccess file in WordPress | 500 internal server error | WordPress error

Follow: How to check and Fix .htaccess File in WordPress?

2. How to increase php memory limit in WordPress?

Internal server can also be caused by exhausting PHP memory limit in WordPress. It can be increased so easily by editing the php.ini file WordPress.

Follow the given instruction to increase PHP memory limit in WordPress:

  1. Create a blank text file called php.ini.
  2. Paste this code in there: memory=64MB.
  3. Save the file.
  4. Upload it into your /wp-admin/ folder using FTP.

Sometimes fixing the internal server error by increasing PHP memory in WordPress can temporarily fix this but to fix it for permanent you have to troubleshoot the cause which is exhausting your memory limit in WordPress.

This could be a poorly coded plugin or even a theme function. I strongly recommend that you ask your WordPress web hosting company to look into the error logs to help you find the exact diagnostics.

How to deactivate all plugins in WordPress?

If above solutions doesn’t work for you then you need to deactivate all plugins at once because sometime, two plugins can conflict with each other and can cause this error or it can also be caused by one single plugin. So we need to disable all plugins and if it works then we need to check which plugin was causing this issue.

Deactivate Plugins | Disable Plugins| WordPress Error| 500 Internal server error

To deactivate all plugins in WordPress, simply login into your cPanel and then navigate to your WordPress directory. Now, Go to wp-content >> plugins now rename the folder plugins to old-plugins or anything then go back to the WordPress website and check whether it solves your 500 internal server error if yes then login into your cPanel back and change folder name back to plugins and then go to your WordPress dashboard and reactivate all plugins one by one and check which plugin was causing this error.

How to re-upload WordPress core files in cPanel?

If the above solution “deactivating all plugins in WordPress” doesn’t work, then re-upload WordPress core files from fresh WordPress install. We need to download fresh WordPress zip from wordpress.org and then extract it on your computer and change wp-admin and wp-includes on your root WordPress directory with the fresh core files wp-admin and wp-includes.

Download fresh WordPress files | 500 internal server error | WordPress error

Either you can use ftp or manually re-upload the core WordPress file in your root WordPress directory.

If your WordPress core files were corrupted then it will resolve the 500 internal server error. If not then, you need to contact your WordPress webhosting company support and they will be able to check the error logs and locate the root cause of the error.

Be the First to comment.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.