If you landed on my post then there is a fat chance that either you are facing 500 Internal Server Error in WordPress. Or there’s a problem with the server or file system that’s powering your site and you are about to face one. If that’s the case then don’t worry. Because by the end of this article you won’t regret landing here. Since we’ll make sure to have you covered on the topic.
What is 500 Internal Server Error in WordPress:
Let’s begin with detailed definiton of 500 Internal Server Eror in WordPress. This will include the causes, symptoms, and of course cure.
WordPress isn’t a special case with regards to mistakes. WordPress sites can also encounter diverse sorts of mistakes relying upon the issue they keep running into. A few mistakes can be fixed by tweaking some things while others can take long periods of investigating to get fixed. All of this can lead to a loss in traffic and possibly affect the user experience of a site.
Let me guess how it all started?
Your site is working fine until a couple of days back, a minor glitch happens, and it gets away from your psyche. All of a sudden, you begin watching a 500 Internal Server Error on each page of your site. The causes most likely happen in the root index. Where your WordPress records are, yet it can likewise be brought about by an issue on your host’s server.
This is one of the most disappointing blunders that can happen in WordPress. It never has a direct arrangement. Requiring a great deal of investigating that can gobble up your time and tolerance. Try not to stress! I realize that you are currently freaking out that you have recently found a 500 Internal Server Error on your WordPress site. Yet there is an answer for nearly everything on WordPress. It’s because of the nature and decent variety of the CMS itself that you can discover an answer for everything.
How to fix 500 internal Server Error in WordPress:
Internal server error in WordPress is often caused by plugin or theme functions. Other possible causes of internal server error in WordPress that we know of are: corrupted .htaccess file and PHP memory limit.
Check corrupted .htaccess file:
The first thing that should be done while troubleshooting the internal server error in WordPress is to check for the corrupted .htaccess file.
One of the important file in any PHP based application is .htaccess. This record contains server related setup rules. If your .htaccess file is ruined, this can cause a 500 Internal Server Error. The .htaccess file is generally influenced by a plugin or a broken installation of a theme. For this situation, you should initially get to your .htaccess file. To determine this issue, sign in to your FTP account. Once signed in to your FTP account, you will see a .htaccess document accessible in the root registry alongside different folders, for example, wp-content,
Since you have found your .htaccess file, you can download it from the live server to a nearby location on your PC. Next, open this document in your word processor (Notepad++, Dreamweaver, and so on).
Click on the link here: https://codex.wordpress.org/htaccess and copy it. Then paste the version of the code that fits best for your site. At that point, save the .htaccess file and transfer it to the live server. The code contrasts for various WordPress configurations and installations. Suppose you have utilized WordPress Multisite in WordPress 3.5 or later, at that point, you have to utilize the accompanying code:
Then, reload your site to check whether the 500 Internal Server Error is fixed. If it is fixed then that would be great, but if not then navigate to the next step.
Increase PHP memory limit in WordPress:
Usually, 500 Internal Server Error can also occur if you are debilitating your PHP memory limit. If you are seeing the 500 Internal Server Error just when you attempt to login to your WordPress admin or transferring a picture in your wp-admin, at that point you should expand the memory limit by following these means:
- 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
Just following these steps simply would do the business as experienced by many. But the thing is that if you fixed the error by simply increasing the memory limit. Then remeber it is only done temporarily.
You still need to find the cause that is exhausting your memory limit. This could be an inadequately coded plugin or even a theme. In this case, I would suggest that you ask your WordPress web hosting provider to investigate the server logs to enable you to locate the careful diagnostics. If increasing the PHP memory limit did not fix the issue for you, then you are in for some more troubleshooting.
Plugins Audit:
Defective or outdated plugins can also cause compatibility issues which prompt 500 Internal Server Error in WordPress site. They are considered as a security hazard as if not updated with the most recent WordPress security patches. If you can approach the admin dashboard of your WordPress site yourself, deactivate each plugin one by one. Revive your site after every deactivation.
At that point check your site once more. If the site begins working appropriately, at that point the 500 Internal Server Error must be due to the plugin installed on your WordPress. Now, you have to activate each and every plugin one by one and revive your site after each plugin activation. The plugin that’s causing the trouble will soon be recognized as it will result in a 500 Internal Server Error for your site.
You may either expel this plugin and supplant it with a refreshed plugin. or contact their help group to release its patch so it tends to be utilized.
Refresh Wp-admin and Wp-includes:
Sometimes it is difficult than one expected to resolve an error. Typical WordPress site is consist of third party themes and plugins and auditing their source code is no walk in the park. In this section, you need to download new wp-admin & wp-content folders and upload to live host via FTP. Make sure that you have backed up the website before this step.
Ideally, at this point, the issue has been settled. If not, simply contact the hosting provider.
Contact your Hosting Provider:
If you’ve experienced all these steps and still can’t discover an answer, your host may have it. It is, nonetheless, essential that you experience these means to guarantee the issue isn’t happening in your root directory.
The nature of the help you get varies between hosts, yet numerous hosts may disregard the issue and accuse your site’s documents instead of their servers. This isn’t impossible as outsider plugins and themes do cause a lot of issues that are out of your host’s hands.
In this way, it’s vital that you experience these means so you can disclose to them that you’ve checked each precautionary steps of your file system and can’t locate a solitary issue. That would prompt the 500 Internal Server Error that is running on your site. If you have done your than you can ask them politely to check their server logs to see if the issue is there.
I hope this guide was helpful and worth your time. For more such articles please visit Webful Creations.