Resolving Internal Server Error on Your WordPress Site
If your website is on WordPress, it is most likely that at least once you experienced the 500 Internal Server Error. You were probably questioned by the reasons causing this error to appear after you dealt with web design and web development.
We will talk about the major reasons that cause this error on any WordPress site and how to fix them. Since there might be multiple reasons causing WordPress Internal Server Error, we will start with the most likely and the easiest to fix.
Reason Number One: Your .htaccess File Is Corrupted
Rare WordPress site is run without any plugins installed. Yours most likely also has some. This may be the 1st reason of corruption of .htaccess file and here are the steps on how you can fix this issue:
- You will need to access your site via FTP using any FTP client software.
- Once you log in, go to the directory containing wp content (there are three of them: wp-admin, wp-content, and wp-includes).
- You should be able to see the .htaccess file that you are looking for.
- Rename it by adding .old or .bak extension.
- Now try loading your site. If the reason of the error was corrupted .htaccess file, the site should load perfectly well.
- If the site loaded without the Internal Server Error, congrats, you’ve found and fixed this issue. Now everything you have to do is to create .htaccess file again. This is simply achieved by clicking Save on the Permalinks page inside Settings.
If these steps did not change anything and the error is still showing up, let’s proceed to the next point in an attempt to fix your site.
Reason Number Two: You’ve Ran out of PHP Memory Limit
As we already said, most likely you have some plugins installed for WordPress. If you have lots of them, keep in mind that each plugin consumes some amount of memory and it could be that with the amount of plugins installed, you exceed the amount of memory that is specified in the php.ini file. Here is how:
- Create a blank file and name it php.ini.
- Open it and input “memory=64MB”.
- Save the file and put it to the wp-admin folder using the FTP client software that you are using.
- Reload your site. You might have fixed the error on this stage.
- If not, try adding “define(‘WP_MEMORY_LIMIT’, ’64M’);” to the wp-config.php file located in the WordPress root directory and reloading the site again.
- If increasing the memory resolved your Internal Server Error issue, good, but remember that this is just an indication you ran out of memory. You still have to figure out where that memory did go.
Reason Number Three: Some Plugin is Causing Issues
So if you have a number of plugins installed, there is quite a chance some of them might be conflicting or causing issues. There is definitely a single way how to figure it out. Let’s try it now:
- Deactivate all plugins that you have installed.
- Enable one plugin at a time and reload your site until you find the plugin that is causing an issue.
- Once found, try looking for the updated version of the plugin or keep it disabled and report an error to the plugin developer and keep patience till the fix is released.
Reason Number Four: WordPress Core Files Are Corrupted
In some cases, core WordPress files might become corrupted, which is easily fixed. All you have to do is to re-upload files contained in the wp-admin and wp-includes directories taken from the WordPress installation file by using the FTP software you are using. Reload the website after that and see if the error is now gone.
As you see, there might be multiple reasons for the Internal Server Error to appear on your WordPress site. Though there is no single way to fix it, as it might have different causes, the issue can be solved relatively easy. You may try any of the listed ways in the order that you prefer and hopefully one of the ways will be your 500 Internal Server Error fix. Find out how to get a custom WordPress theme development as well!