You might have spent a long time suffering the internet and interact with HTTP 500 Internal Server Error at least a few times. Internal Server Error is one of the standard WordPress errors; it is a headache for a beginner. When we moved to WordPress from Blogger about a half year back, we have faced this error many times. Still, it’s not much difficult to resolve this issue, so don’t be panic we will teach you how to fix the Internal server error in WordPress in this article, but first, we have to learn why it occurs.
Table of Contents
Why do we get Internal Server Error in WordPress?
The internal server error is not specified for WordPress only, and it may happen with other CMS or Scripts running on the server. In WordPress may cause by plugin or theme functions, there are other causes of internal server error in WordPress such as corrupted .htaccess and PHP memory limit. Some time internal server error occurs when we try to access the administrator area, but the rest of our site works fine.
So let’s start to learn how to troubleshoot the internal server error in WordPress.
Corrupt .htaccess File:
First, rename your .htaccess file with anything you assume, for example (.htacsess_prev). You can access .htaccess file through FTP or Internal Filemanager provided by your Hosting Provider.
After renaming the .htaccess file reload your website, if it works fine, that’s good, but if it isn’t, then don’t worry, go to Settings » Permalinks and click the save button and again reload the page.
If it doesn’t work, then move to the next option.
Increase the PHP Memory Limit:
It is not so hard you need to follow the simple four-step mentioned below to increase the PHP Memory Limit and to resolve the internal server error in WordPress.
- 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 it is fixed, it is temporary, then ping your web hosting company and ask them to find which plugin or theme function is exhausting your Memory Limit and then remove to solve this issue permanently.
If it doesn’t work for your move to the next step.
Deactivate all Plugins:
You are here because above mentioned fixes didn’t work for you, so internet server error in WordPress you are facing might be because of a plugin that is interrupting server functions. You need to deactivate all plugins to fix this issue by following these methods.
Using FTP:
Access your “/wp-content/” folder, and you will find there is a subfolder named “plugins” rename the folder name, for example, to “plugins.dct” once you have done this, all of your Plugins will be deactivated.
Using phpMyAdmin:
Go to your WordPress database and select the wp_options table. Locate the option name “active_plugins,” press edit value of that option, and change it to “a:0:{}“.
If you are not much aware of phpMyAdmin, then we suggest going for the FTP method to deactivate your plugins.
I hope that you’ve deactivated your plugins, now reload your web if it works, then it is confirmed that a plugin causes the error. Now all you have to do is go through the same steps and check all plugins. But first, rename your “plugins.dct” folder or whatever name you choose back to the standard “plugins.”
If this option doesn’t work for you, move to the next step, which is quite simple.
Re-Upload all core files:
It seems to be that you are still unable to fix the internet server error in your WordPress site follow the steps, Download a fresh copy of WordPress from WordPress and re-upload all core files from wp-admin and wp-includes folder don’t upload anything else. Uploading these two folders doesn’t hurt your web. It will refresh all those files include the infected one.
If all this didn’t work for your better ask your hosting provider to fix the issue provide them with the details they ask for, and they will fix the problem, if you are searching for a better hosting provider, then we compiled a list of Best web hosts you better visit it and if you are looking for best reliable and affordable web hosting in Pakistan then must visit this page to check the reviews about Best Pakistani web hosting providers.
If you think that we have missed anything or you want to add anything, comment below!.