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.
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.
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:
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:
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.
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.
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.
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.
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.