How to Fix 500 Internal Server Error
If you encounter 500 Internal Server Error on your WordPress Website, you are at the right place. Below I,m going to show you how to solve this issue. Step by step to fix the problem.
5 Steps How to Fix 500 Internal Server
Step 1 Contact Your Hosting Company
To contact your hosting company to investigate what is the problem, this is the first step you should do before anything. As this error is a very general HTTP status code which is not sure what is the problem that causes this. That’s mean there is something wrong with the website’s server. There might be the problem from your end, your application running on the server or might be issue arised from your host. You should contact them to have a check first. Some of the hosting company will help you solve and fix your WordPress issue. This is a list of the server error codes that you can refer.
Step 2 DO NOT 100% Believe Your Host
Why did I say so? If your Host tells you that your server is fine, we shouldn’t always trust them 100% but we have to check the server again.
To check your server is running well, please download this simple php page code THIS LINK. After you have downloaded the file, please upload it to your root folder. You will visit YOUR_DOMAIN.com/info.php. If the server is running well, it should be showing some server info. If you still get the 500 Internal Server Error, that’s mean server having problem, as the php file is just a line of simple code and do not depend on anything to load. You can go back to your host again and let them know about this.
Step 3 CHECK .HTACCESS FILE FOR ERRORS
Login into your CPanel dashboard or usinh FTP access to your website files, rename .htaccess file to .htaccess_old. The .htaccess file will be located at the root of the website [public_html]
After you rename your .htaccess file, please visit your website again to check if the error has been solve. If yes, this is the issue that causes website down.
After that, please go to Setting –> Permalinks page in WordPress admin panel and Click “Save” without making any changes. This will help you regenerate the new .htacess file for your website and rewrite the rules and make sure website do not back to the error.
If this method still not work for you, please continue step 4.
Step 4 To Rule Out Any Issue on Your WordPress Core Files
Sometimes might due to WordPress installation issue. It might due to the files corrupted, be missing or changed. This step we going to re-install WordPress core files
- Get the latest WordPress zip (or tar.gz) file.
- Unpack the zip file that you downloaded.
- Deactivate plugins.
- Delete the old
wp-admindirectories on your web host (through your FTP or shell access).
- Using FTP or your shell access, upload the new
wp-admindirectories to your web host, in place of the previously deleted directories.
- Upload the individual files from the new
wp-contentfolder to your existing
wp-contentfolder, overwriting existing files. Do NOT delete your existing
wp-contentfolder. Do NOT delete any files or folders in your existing
wp-contentdirectory (except for the one being overwritten by new files).
- Upload all new loose files from the root directory of the new version to your existing wordpress root directory.
NOTE – you should replace all the old WordPress files with the new ones in the
wp-admin directories and sub-directories, and in the root directory (such as index.php, wp-login.php and so on). Don’t worry – your wp-config.php will be safe.
When replacing the files, please be careful to replace only the necessary files only, rather that replacing entire wp-content directory.
Step5 Check if your plugin or theme issue
This step to check if the error coming from active plugin or theme. Access to your website files via FTP or CPanel Dashboard. Go to WP-Content –> Plugins. Rename Plugin Folder to Plugin_OFF. Now try to reload the website, as now all the plugin are deactivated. If your website is running now, no more 500 Internal Error Issue, so we know this is the plugin issue. Now go back to the folder and rename it back to the original name.
Login to your WordPress wp-admin dashboard, go to plugin panel, turn the plugin on 1 by 1 until and reload the website until you find one of the plugins causes issues.
If the website is caused by active theme. Go to WP-content –> Themes. Now rename Themes folder to Theme_OFF. Reload the website to check if the theme causes the issue.
I hope that by following these steps you are able to find your problem, please comment below if you encounter any problem or this post is helpful.