The 500 internal server error is one among the foremost common WordPress errors. Since the error doesn’t give the other information, many beginners find it quite frustrating. In this article, we’ll show you ways to simply fix internal server error in WordPress.

What Causes Internal Server Error in WordPress?

The internal server error is not specific to WordPress. It can happen with any website running on an internet server. Due to the generic nature of this error, it doesn’t tell the developer anything.

Internal server error in WordPress is typically caused by plugin or theme functions. Other possible causes of internal server error in WordPress that we all know are corrupted .htaccess file and PHP memory limit.

We have also heard internal server error only exposure once you try to access the admin area while the remainder of the location works fine.

That being said, now let’s take a glance at the way to set about troubleshooting the interior server error in WordPress.

Checking for Corrupt .htaccess File

The first thing you need to do when troubleshooting the inside server error in WordPress is to check for the corrupted .htaccess file.

You can do so by renaming your main .htaccess file to something like .htaccess_old. To rename the .htaccess file, you’ll get to login to your site using FTP or File Manager app in your hosting account’s cPanel dashboard.

Once you connected, the .htaccess file is going to be located within the same directory where you’ll see folders like wp-content, wp-admin, and wp-includes.

Once you’ve got renamed the .htaccess file, try visiting your site to ascertain if this solved the matter. If it did, then give yourself a pat on the rear because you fixed the interior server error.

Before you progress on with other things, confirm that you simply attend Settings » Permalinks page in WordPress admin area and click on the save button without making any changes. This will generate a replacement .htaccess file for you with proper rewrite rules to make sure that your post pages don’t return a 404 error.

If checking for the corrupt .htaccess file solution didn’t work for you, then you would like to continue reading this text.

Increasing the PHP Memory Limit

Sometimes internal server error can happen if you’re exhausting your PHP memory limit. Use our tutorial on the way to increase PHP memory limit in WordPress to repair that.

If you’re seeing the internal server error only you are trying to login to your WordPress admin or uploading a picture in your wp-admin, then you ought to increase the memory limit by following these steps:

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

Several users have said that doing the above fixed the admin side problem for them.

If increasing the memory limit fixed the matter for you, then you’ve got only fixed the matter temporarily. You still need to find the cause that is exhausting your memory limit.

This could be a poorly coded plugin or maybe a topic function. We strongly recommend that you simply ask your WordPress web hosting company to seem into the server logs to assist you discover the precise diagnostics.

If increasing the PHP memory limit didn’t fix the difficulty for you, then you’re certain some more troubleshooting.

Deactivate all Plugins

If none of the above solutions worked for you, then this error is presumably being caused by a selected plugin. It is also possible that it’s a mixture of plugins that aren’t playing nice with one another.

Sadly, there is no easy way to find this out. You have to deactivate all WordPress plugins directly.

Follow the instructions in our guide the way to deactivate all WordPress plugins without WP-Admin.

If disabling all plugins fixed the error, then you recognize it’s one among the plugins that are causing the error.

Simply attend the WordPress admin area and click on ‘Plugins’. Now you need to reactivate one plugin at a time until you find the one that caused the issue. Get obviate that plugin, and report the error to the plugin author.

Re-uploading Core Files

If the plugin option didn’t fix the within server error, then it’s worth re-uploading the wp-admin and wp-includes folder from a fresh WordPress install.

This will NOT remove any of your information, but it’s going to solve the matter just in case any file was corrupted.

First, you will need to visit the WordPress.org website and click on the Download button.

This will install the WordPress zip file to your computer. You need to extract the zip file and inside it, you’ll find a WordPress folder.

Next, you would like to attach to your WordPress website using an FTP client. Once connected attend the basis folder of your website. It is the folder that has wp-admin, wp-includes, wp-content folders inside it.

In the left column open the WordPress folder on your computer. Now you would like to pick wp-includes and wp-admin folders then right-click and choose ‘Upload’.

Your FTP client will now transfer those folder to your server. It will ask you whether you would like to overwrite the files. Select ‘Overwrite’ then select ‘Always use this action’.

Ask your Hosting Provider

If all methods fail to repair internal server error on your website, then it’s time to urge some more help. Contact your web hosting support team and that they are going to be ready to check the server logs and locate the basis explanation for the error.

If you would like to continue troubleshooting on your own, then see our ultimate WordPress troubleshooting guide for beginners.