Are you seeing 500 internal server error in WordPress? Internal server error is one of the foremost common WordPress errors. Since the error doesn’t give the opposite information, many beginners find it quite frustrating. during this text , we’ll show you ways to easily fix internal server error in WordPress.
What Causes Internal Server Error in WordPress?
Internal server error isn’t specific to WordPress. It can happen with any website running on an online server. because of the generic nature of this error, it doesn’t tell the developer anything.
Asking the thanks to fix an inside server error is like asking your doctor the thanks to fix the pain without telling them where the pain is.
Example of a WordPress website showing internal server error
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 of are: corrupted .htaccess file and PHP memory limit.
We have also heard internal server error only exposure once you are trying to access the admin area while the rest of the situation works fine.
That being said, now let’s take a look at the thanks to set about troubleshooting the inside 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 check for the corrupted .htaccess file.
ou can do so by renaming your main .htaccess file to something like .htaccess_old. To rename the .htaccess file, you’ll got to login to your site using FTP or File Manager app in your hosting account’s cPanel dashboard.
Once you connected, the .htaccess file are going to be located within the same directory where you’ll see folders like wp-content, wp-admin, and wp-includes.
Editing .htaccess enter WordPress
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 may 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 interior 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 document 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 continue to got to find the cause that’s 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’s also possible that it’s a mixture of plugins that aren’t playing nice with one another .
Sadly, there’s no easy thanks to find this out. you’ve got to deactivate all WordPress plugins directly .
Follow the instructions in our guide the way to deactivate all WordPress plugins without WP-Admin.
Deactivate all WordPress plugins
If disabling all plugins fixed the error, then you recognize it’s one among the plugins that’s causing the error.
Simply attend the WordPress admin area and click on on ‘Plugins’. Now you would like to reactivate one plugin at a time until you discover the one that caused the difficulty . Get obviate that plugin, and report the error to the plugin author.
Re-uploading Core Files
If the plugin option didn’t fix the interior 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’ll got to visit the WordPress.org website and click on on the Download button.
This will install WordPress zip file to your computer. you would like 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’s 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’.
Upload fresh WordPress files
Your FTP client will now transfer those folder to your server. it’ll ask you whether you’d wish to overwrite the files. Select ‘Overwrite’ then select ‘Always use this action’.
Your FTP client will now replace your older WordPress files with newer fresh copies. If your WordPress files were corrupted, then this step will fix the interior server error for you.
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.
We hope this text helped you fix the interior server error in WordPress. you’ll also want to ascertain our complete list of the foremost common WordPress errors and the way to repair them.