If you visit your website and suddenly you see the message “500 Internal Server Error”, it means that something has gone wrong with your WordPress website and not because of your browser, computer or internet connection. Happening. This 500 internal server error has occurred in your website.
What is 500 Internal Server Error
500 Internal Server Error is common error and it happens when there are some unexpected things happening with your webserver (due to the plugin, corrupting the .htaccess, PHP memory limit is reached, wordpress core file are corrupte) So that your servers does not providing any information and instead of show you a normal webpage, it starts showing internal server error.
How to fix 500 Internal Server Error
Here I am going to tell you some easy way to fix Internal server error in WordPress site, with the help of which you will be able to easily fix 500 internal server error that came in your site.
So let’s start…
1. Re-create the .htaccess file
The .htaccess file is for web server configuration in a WordPress site and is used in WordPress to set the permalinks structure. If you configure it and small mistake is made, then you may have face the internal server error.
To recreate or genarate it, you have to login to cPanal of your web hosting. Then click on file manager.
After that go to the root directory, find the .htaccess file and rename it to something like “.htaccess old file”.
Now log into your wordpress site and go to the Settings >> Permalinks section and click on the Save Changes button without making any changes.
WordPress will automatically create an .htaccess file for your site. Now your website will start run again without any internal server error.
2. Plugin Deactivate by
If even after creating the .htaccess file, your internal server error does not solve, then you will have to Deactivate all the plugins from your site.
To deactivate the plugin from your site you have to go to the WordPress plugin section then deactivate all the plugins.
If you are not able to access your WordPress admin area then you will have to log in to your web hosting cPanel, then go to the root directory and click on “wp-content”.
After that rename the plugins folder inside it like plugins_OLD
Now all the plugins from your site will be deactivated. If your website now open then there was a wordpress plugin due to this 500 internal server error.
If you go to your WordPress plugin section, you will see the error code “the plugin has been deactivated due to an error; plugin file does not exist ”.
Nothing to worry about. To fix this again, log into your web hosting cPanel and rename the renamed plugins_OLD folder to the plugin again.
Then, go to the WordPress dashboard and activate the plugins one by one.
3. Increase the PHP memory limit
If the problem of your internal server error is not solve, then you have to increase the PHP memory limit of your hosting.
Go to the cPanel of your Webhosting to increase the PHP memory limit. Then edit the wp-config.php file. Now / / you all, stop editing! Happy blogging. Before the * / message, you have to add the below code to it
define (‘WP_MEMORY_LIMIT’, ’64M’);
If even after increasing the PHP memory limit, your PHP memory limit does not increase, then you will have to contact your host.
4. Upload wordpress core files
If you still see the same issue in your site, then you will have to upload a new wordpress core files for your site.
To upload wordpress core file, use FTP instead of file manager.
To download the latest version of WordPress, visit WordPress.org.
After download, unzip the ZIP file, then delete the wp-content folder and wp-config-sample.php file.
Then upload it to your WordPress cPanel using FTP. Your FTP client will prompt for duplicate files, then you have to choose the option of Overwrite duplicate files.
One of these points will definitely fix the internal server error in your WordPress website, and if you cannot, then you can contact your team. Or hire a WordPress developer!
If this article has proved helpful for you, then don’t forget to share it!