How to fix 500 Internal Server Error in WordPress?
- 1 How to fix 500 Internal Server Error in WordPress?
- 2 What are the 500 internal server error and some reason behind it?
- 3 How do you fix 500 internal server error in WordPress?
- 4 What does 500 Internal Server Error mean?
- 5 What is the cause of “500 Internal Server Error”?
- 6 .htaccess to be corrupt plugin Issue Completion of PHP Memory Limit WordPress’s corrupt core files
- 7 Bluehost
- 8 HostGator
- 9 SiteGround
- 10 Inmotion Hosting
- 11 How to fix “500 Internal Server Error” in WordPress?
- 12 Potential Fix 1: Generate a New .htaccess file
- 13 Step 1: Rename your existing .htaccess file
- 14 Step 2: Generating new .htaccess file
- 15 Potential Fix 2: By deactivating your plugins, find the faulty plugin.
- 16 If you still can access your WordPress dashboard, then how to deactivate your plugins:
- 17 Or you can not access your dashboard, then how to deactivate plugins:
- 18 Potential Fix 3: Increase your web hosting’s PHP memory limit
- 19 Potential Fix 4: Repeat WordPress Core Files
- 20 Note: Make sure you take a complete backup of your site before doing all this. In this regard, you read our article: How to Get Full Backup of Your WordPress Site?
- 21 Fixing Internal Server Error Message
- 22 How to Install WordPress on Hostgator Hosting- kbdindia.com
Have you ever visited your WordPress site and you have seen a 500 internal server error?
Maybe it’s happening with you now:
This is an intimidating error because like anyone error establishing a database connection, your site completely disappears, But you do not even need to worry too much about it.
This error is fixable and chances are that the data on your WordPress site is safe.
In this post you will learn:
What are the 500 internal server error and some reason behind it?
How do you fix 500 internal server error in WordPress?
What does 500 Internal Server Error mean?
Internal Server Error (sometimes called 500 internal server error), which gives you your server when there is a problem with it. It basically tells you that something went wrong, but it did not know what was wrong in the end.
This is not a satisfying explanation, but again, this is not a specific error either.
What is the cause of “500 Internal Server Error”?
Because this error is so broad, then there is no single cause for it.
Its most common causes are with WordPress:
.htaccess to be corrupt
Completion of PHP Memory Limit
WordPress’s corrupt core files
So let me tell you the solutions to cope with all these problems. But if you need to quickly find out what’s going wrong, in the end, error logs from your server can quickly tell you what is the cause of the problem.
If your host uses cPanel, you can view it by going to your cPanel dashboard and then click on Error log.
Unfortunately, as you can see from the image below, these error logs are not always user-friendly to read.
If you do not know anything from an error log, then you:
You can contact your host’s support to tell you exactly what the problem is.
Please solve some common issues before this, which are below.
The hosts confirmed cPanel offers the following:
How to fix “500 Internal Server Error” in WordPress?
Below are some of the most common ways to fix this error in WordPress. I recommend you, start from the top and go to the bottom.
Potential Fix 1: Generate a New .htaccess file
.htaccess file is a file for the configuration of your web server. WordPress uses it to set the structure of your permalinks.
Because it controls the configuration of your web server, a small mistake in this file can also keep an internal server error in front of you.
But thankfully it is very easy to solve this problem. All you have to do is force WordPress to generate a new .htaccess file for you.
Step 1: Rename your existing .htaccess file
To begin, you have to rename your existing .htaccess file. You can do it in two ways:
- Connect your site via FTP You can use Filezilla to do this.
- You can also use cPanel’s built-in file manager tool.
I’m going to show you a process with file manager because it is simple for most users. But core principles remain the same, no matter what method you are using.
You can access the Final Manager from the cPanel dashboard:
Once you open File Manager, by going to your root directory, locate the .htaccess file.
Right-click and select Rename.
Rename it to something like “.htaccess_old”.
Now you have to generate a new .htaccess file to replace it.
Step 2: Generating new .htaccess file
To force your WordPress to generate a new .htaccess file, go to your WordPress Dashboard.
Then go to Settings → Permalinks.
You do not have to make any setting changes.
Just click the save changes button and WordPress will automatically generate a new file for you.
And just hopefully your site will start running again.
Potential Fix 2: By deactivating your plugins, find the faulty plugin.
If the .htaccess file was not your problem, then the next thing you can do is try to deactivate the plugins.
Generally, plugin issues and conflicts can cause an internal server error. This often happens when you have installed a new plugin and immediately get an error in front of you.
By deactivating the plugins, you can delete the plugin that causes the problem.
If you still can access your WordPress dashboard, then how to deactivate your plugins:
If you still can access your dashboard, go to your plugin management area, then use the checkbox to deactivate all the plugins.
Now reactivate plugins one by one, so that you get a problem creating a plugin.
Or you can not access your dashboard, then how to deactivate plugins:
When an internal server error occurs, most chances are that you can not access the dashboard. In this case, you have to take a slightly different approach to deactivate plugins.
- In this case, you have to use a file manager or FTP. You can also use Filezila.
- Go to / wp-content / folder
- Rename the plugins folder such as plugins_old.
This will disable all plugins.
Now try to access your WordPress dashboard, if you are able to access it, you will be sure that the issue is with a plugin.
If you go to the plugin section of your dashboard, it will give you an error: “the plugin has been disabled due to an error; plugin file does not exist. “
Do not worry, we’ve discovered that the problem is with a plugin.
To reactivate plugins one by one:
Rename Plugin folder to plugins_old again in plugins only.
Now activate the plugins one by one from the WordPress dashboard one by one.
After activating every single plugin, browse to 3-4 pages of your blog. Keep doing this until you get an internal server error again. You will get a faulty plugin.
In most cases, this will solve your problem.
Potential Fix 3: Increase your web hosting’s PHP memory limit
If your problem still is not resolved then there are still some things you can do:
As you know, WordPress is a memory hobbing CMS, so when you install more plugins, or if you want more memory for WordPress, then in this case you need to increase the PHP memory limit, otherwise, error Will come
To do this, you have to edit the wp-config.php file. You can also access it from an FTP or file manager.
* That’s all, stop editing! Happy blogging. */ message से पहले आपको ये code add करना है:
define( ‘WP_MEMORY_LIMIT’, ’64M’ );
This will only work if your host has not set the memory limit for you less than this.
For this reason, if you do not get any change after editing this file, then you have to contact your host to increase the limit.
Potential Fix 4: Repeat WordPress Core Files
If nothing is the end, you will have to upload a clean copy of WordPress core files.
For this purpose, I recommend you to use FTP program instead of File Manager.
Note: Make sure you take a complete backup of your site before doing all this. In this regard, you read our article: How to Get Full Backup of Your WordPress Site?
Download WordPress latest version from WordPress.org:
Once the download is finished, extract the ZIP file and delete it:
- All wp-content folder
- wp-config-sample.php file
After this, upload all the remaining files via FTP, on your WordPress site. Your FTP program will prompt you to duplicate files. When this happens, do not forget to select the option of Overwrite duplicate files.
Fixing Internal Server Error Message
At this point, some solution might have worked for you so that your internal server error would have been solved.
If not, then main recommend you contact your host’s support team. And if they can not help you, then you can hire a WordPress developer to fix things.
You can also comment, maybe we can solve your problem together!
Tell me if this error has happened to you and what did you do to solve it?
Be sure to share this article on social media so that more and more WordPress users help in solving errors.