Do you encounter a 500 error in WordPress or the same 500 internal server error? This error usually appears as HTTP 500 Internal Server and is one of the most common WordPress errors. Since this error does not provide any other information, it disappoints many beginners. In this article from the WordPress tutorial series , we will teach you how to fix a 500 server error in WordPress so that you can easily fix this error.
What is the reason for 500 errors in WordPress (internal server error)?
Internal server error does not just happen in WordPress. This error can occur on any website running on a web server. Error 500 Servers in WordPress, due to its general nature, does not provide any information to the developer.
Asking how to fix an internal server error is like asking your doctor to treat you without telling you where it hurts!
Internal server error in WordPress is often due to the functionality of the plugin or theme . Other possible causes of internal server errors in WordPress that are known include corrupted htaccess files and limited PHP memory .
It is also rumored that the server only shows this error when you try to access the site management area, while the rest of the site is working fine.
How to fix 500 errors in WordPress
As mentioned, an internal server error can have a variety of causes. Let’s take a look at how to troubleshoot 500 server errors in WordPress.
Check the file. htaccess broken
The first thing you need to do to fix the internal server error in WordPress is to find the corrupted .htaccess file.
You can do this by renaming the original .htaccess file to something like .htaccess_old. To rename a .htaccess file, you must log in to your site using the FTP program or the file manager in the cPanel dashboard of your hosting account.
Once connected, the .htaccess file will be located in the same directory where you will see folders such as wp-content, wp-admin and wp-includes.
Once you have renamed the .htaccess file, try checking your site to see if this solves the problem. If the problem is solved, then be proud of yourself, because you eliminated the internal server error!
Before moving on to other things, go to the Settings »Permissions Links section in the WordPress admin area and click the Save button unchanged. This will create a new .htaccess file with the right copyright rules for you to make sure your post pages no longer encounter a 404 error.
If checking for a corrupt .htaccess file did not help you, then you should continue reading this article to fix the 500 error in WordPress.
Increase PHP memory limit
Sometimes an internal server error may occur if you are tired of your PHP memory limit! To solve this problem, you can use our tutorial on how to increase the limit of PHP memory in WordPress.
If you see an internal server error only when you try to log in to your admin area or when you upload an image to wp-admin, you should increase the amount of memory by following these steps:
- Create a blank text file called ini
- Put this code inside: Memory = 64MB
- Save the file
- Upload it to the / wp-admin / folder using FTP
Some users have said that doing so has side effects. If increasing the amount of memory solves the problem for you, this problem has only temporarily disappeared. You still have to find a reason to overuse your memory.
This could be due to a weak plugin or even theme performance. We strongly recommend that you ask your WordPress web hosting company to look at your server logs so that you can pinpoint the exact cause.
If increasing the PHP memory limit does not solve the problem for you, there are other ways to troubleshoot 500 errors in WordPress in this article.
Disable all plugins
If none of the above solves your problem, this error is most likely caused by a specific plugin. It may also be a combination of plugins that do not work well together.
Unfortunately, there is no easy way to find this plugin or plugins. You need to disable all WordPress plugins at one time.
So follow our guide on how to disable all WordPress plugins without WP-Admin.
If disabling all plugins fixes the error, it is clear that it is one of the plugins that is causing the error.
Simply go to the WordPress admin section and click on ‘Plugins’. Now you need to reactivate one plugin at a time so that you can find one of these problems and then… get rid of this plugin and report an error to the plugin author and that’s it!
Reload core files
If the plugin option does not resolve the 500 server error in WordPress, then you must re-upload the wp-admin and wp-include folder after the new WordPress installation.
This will not delete any of your data, but if there is any corrupted file in it, your problem will be solved.
You must first log in to the WordPress.org website and click the download button.
This button installs the WordPress zip file on your computer. First extract the zip file. Inside it you will find a WordPress folder.
Then connect to your WordPress website using an FTP server. Once connected, go to the root folder of your website. This is the folder where you will find the wp-admin wp-include and wp-content folders.
In the left column, open the “WordPress” folder on your computer. Now you need to select the wp-includes and wp-manager folders and then right click on it and select ‘Upload’.
Your FTP client will now forward this folder to your server and ask you if you want to overwrite the files. Select “Overwrite” and then click “always use this action”.
Your FTP client now replaces your old files with newer versions of WordPress. If your WordPress files are corrupted, this step will fix the internal server error for you.
To fix a 500 error in WordPress, ask your Hosting Provider.
If none of these methods work to fix an internal server error on your website, it’s time to get more help. Contact your web hosting support team. They can check the log server and find the root cause of the error.
We hope this article helps you resolve an internal server error in WordPress. Also, if you wish, you can see the complete list of the most common WordPress errors and how to fix them.