How to fix 500 Internal Server Error from WordPress site
If you visit your website and suddenly you see the message “500 Internal Server Error”, that means, something went wrong with your WordPress website and it is not Happening due to your browser, computer or internet connection. This error “500 internal server error” has happened on your website.
What is 500 Internal Server Error and what is the reason
500 server error code is a common message and this happens when some unexpected things (with .htaccess being corrupt, due to a plugin, due to PHP memory limit, worWordPressre files being corrupted) with your web server Since your server does not provide any information and shows an internal server error instead of showing a normal web page.
How to fix 500 Internal Server Error
I am going to tell you some best and easy way to To fix “internal server error” from WordPress site.
So let’s start ……..
1. Rebuild .htaccess file
The .htaccess file is for web server configurations in WordPress site and it is used to set permalinks structure in WordPress. If you configure it and make a small mistake, then you may face the internal server error.
To create or regenerate it again, you have to log in to your web hosting’s cPanal. Then click on the file manager.
Then go to the root directory and search for the .htaccess file, then rename it anything like “.htaccess old file”
Now log in to your WordPress site and go to Settings >> Permalinks section and click the save changes button without making any changes.
WordPress will automatically create a .htaccess file for your site. Now your site will start running again without any internal server error.
2. By deactivating the plugin
If your internal server error is not resolved after creating the .htaccess file, then you have to deactivate all the plugins from your site.
To deactivate the plugin from your site, go to the WordPress plugin section and then deactivate all the plugins.
If you are not able to access your WordPress admin area then log in to your web hosting’s cPanel and go to the root directory and click on “wp-content”.
Then rename the plugins folder.For example plugins_OLD. As you can see in the screenshot,
Now all the plugins will be deactivated from your site. If your site is now open, then this was a WordPress plugin due to this 500 internal server error.
If you go to your WordPress plugin section then you get the error code “the plugin has been disabled due to an error; plugin file does not exist “
To fix this problem, please log in to the web hosting cPanel and rename the “plugins_OLD” folder again in the plugins.
Then, activate the plugins one by one by going to the WordPress dashboard.
3. Increasing PHP memory limit
If the problem of your internal server error is not solved then you have to increase your Webhosting’s PHP memory limit.
Enter your web hosting cPanel to increase the PHP memory limit. Then edit wp-config.php file. Now you have to add the following code before “/ * That’s all, stop editing! Happy blogging. * /”.
define( ‘WP_MEMORY_LIMIT’, ’64M’ );
As you can see in the screenshot,
If your PHP memory limit does not increase after increasing PHP memory limit then you have to contact your host.
4. Upload new WordPress core files
If you are still getting the same problem on your site, then you have to upload a new WordPress core files for the site. To upload WordPress core files, use FTP instead of file manager. Visit WordPress.org to download the latest version of WordPress.
After downloading, extract the ZIP file then delete the wp-content folder and wp-config-sample.php file.
Then upload it to your WordPress cPanel via FTP. When your FTP client will prompt to duplicate files, you will need to select Overwrite duplicate files option.
One of these points will definitely fix the internal server error on your WordPress site and if you can not do it, you can contact your support team. Or hire a WordPress developer!
You can comment for any questions or suggestions related to this article. If you like this “500 Internal Server Error” article, please do not forget to share it on twitter, Google+ and facebook….