In the technical perspective for HTTP error 500, when a user accesses a web server or a web application, every HTTP request has to be responded with a unique three-digit status code grouped together in HTTP format.
Think about that when the web server does not return the requested web page upon the user’s request, it results into an error.
And not to mention, if you‘re the server administrator, you lose thousands of visitors and prospective customers.
Why Do I Get HTTP Error 500?
Frankly, there’s a lot of reasons.
There may be a problem with the web server configurations which may require urgent attention of the server administrator and web host.
Other times, this frightening error occurs because of problems with the working of your web browser or computer.
This article outlines troubleshooting guidelines from the point of view of both home users and website/ server administrators.
You’re just 3 steps away from automatically fixing this problem….
- Download and install Diagnostic
- Perform driver update.
- Restart your computer.
Estimated Download Time: 10 Seconds
Clear Browser Cache & Cookies
Whenever a user visits a website, it automatically stores tiny files, known as Cookies.
These files contain data in an unreadable form that makes it easier for the website to load the user’s preferences upon next visit.
Cache, on the other hand, is a snapshot of an entire web page that significantly improves the loading speed and performance.
There‘s a good chance that the copy of the web page stored on your computer as part of the web cache is corrupted and therefore, inaccessible.
The web cache and cookies get corrupted by any means, such as when the browser unexpectedly closes, your Internet connection drops during a cookie/ cache download, or a program installed on your machine corrupts the cache contents.
With that said, it is easier to get rid of these corrupt elements. Here’s how:
For Google Chrome
1.Click the Menu icon on the upper right side.
2. Select More tools, followed by Clear Browsing Data.
3. Head to the Advanced tab.
4. Next, look at the Time range drop-down box and set it to All time.
5. We will also leave all
6. Click Clear Data and wait for some time until deletion is completed.
For Mozilla Firefox
1.Press the Alt key of your keyboard to show the menu items.
2. Click on History and select Clear Recent History.
3. At this point, set Everything in the Time range to clear.
4. Check all the boxes except Active Logins.
For Microsoft Edge
1.Click the Settings icon on the upper right corner of your screen
2. Again, select Settings from the menu options
3. You’ll have a comprehensive list of Edge preferences on the right-hand side panel.
4. Click the tab named Privacy and Security.
5. You‘re almost there, hit Choose what to clear.
6. Select all
7. Click Clear to proceed.
1.Click the Tools icon on the far right corner of your screen.
2. Head to Safety, and then Delete Browsing History.
3. In the new
4. Click Delete to confirm.
1.Click the Opera icon on the panel on the left.
2. Navigate to History, and then Clear Browsing Data.
3. Head to Advanced tab and check everything except Passwords and other sign-in data.
4. Hit Clear Data.
Flush DNS Cache
The word DNS is an acronym of the Domain Name System which is an equivalent of a phone book in computing that contains references to domain names and translates the same to IP Addresses.
When your computer shuts down because of various reasons such as a power failure, the DNS Caching process may interrupt and cause the cache contents to get corrupted.
You may want to flush the DNS contents using an elevated Command Prompt as we’ll see below:
For Windows 10
1.Type CMD in the Search Box on your Taskbar.
2. Right-click Command Prompt, select Run as Administrator.
3. In the resulting
That’s it. After successful completion, you should receive a message like this
For Windows 8.1/ 8
- Move your mouse cursor to the extreme bottom left corner of your screen. You should see a small Start Screen thumbnail, right-click it, and select Command Prompt (Admin).
- Type the following command:
- Press ENTER.
For Windows 7/ Vista/ XP
- Click on Start.
- Click All Programs, followed by Accessories.
- Choose Command Prompt from the list of available utilities.
- Type the following command and press ENTER:
Disable Friendly HTTP Errors
Microsoft implemented the Friendly HTTP Errors feature to make it easier for non-tech savvy users to browse the Internet with little bothering about technical aspects such as error logs and debugging information.
The long, confusing error text and logs get shielded from the user and a nicely written, user-friendly text is displayed every time an error appears
For Windows 10/ 8.1/ 8/ 7/ Vista/ XP
2. Click OK or press ENTER
3. Looking ahead, check for the Advanced tab in the newly opened Internet Properties dialog.
4. Un-check Show friendly HTTP error messages.
5. Click Apply, and then OK.
6. Fire-up Internet Explorer, and hard re-load your page using Ctrl + F5.
Reset Browser Settings
One way to fix WordPress HTTP Error 500 is to reset the browser settings to defaults.
I highly recommend backing up all your important stuff such as bookmarks and saved passwords.
For Google Chrome
2. Scroll to the bottom of the page, and click Advanced.
3. Use the option Restore settings to their original defaults under Reset and Clean Up options.
4. Go ahead, and click Reset Settings.
For Mozilla Firefox
1.Press the Alt key to show menu bar which is hidden by default.
2. Click Help, and select Troubleshooting Information.
3. Click Refresh Firefox.
4. Again, in the confirmation prompt, select Refresh Firefox.
2. Head to the Advanced tab and choose Reset.
3. You’ll want to check the Delete personal settings and then click Reset again.
1.Click the Menu icon, select Settings.
2. Click the Advanced option on the left.
3. Scroll down to the bottom and choose Advanced
4. Select Restore settings to their original defaults under the Reset Settings.
5. When you‘re asked to confirm, click Reset.
HTTP Error 500 WordPress Solution For Developers & Server Administrators
If you‘re the website/ server administrator, I strongly recommend backing up the WordPress website before making further changes.
A slight misconfiguration or an incorrect move can shatter the entire website.
Restore Default .htaccess File
.htaccess is a configuration file that plays a significant role in your WordPress hosting. This file contains rules that govern various aspects of the website.
The .htaccess file has significant benefits:
- Website Management: It determines the default home page and permalinks
- Protects Your Website: It controls the behaviour of your website and protects it from external influence and attacks
- Prevents Unauthorized Access: It denies access to certain Internet Protocol (IP) Addresses
- Redirect Management: It directs website visitors from one page to
- Friendly Errors: It displays friendly error messages whenever a visitor tries to access a web page that no longer exists
That being said, there is always a chance to get this file corrupted.
Some of the reasons include:
- A faulty and incompatible plug-in or theme can break the contents of the .htaccess file.
- The file hasn‘t been properly configured by your web developer or server administrator.
- The web developer loses the Internet connectivity while changes are being made to your website.
The good thing: It’s not that difficult to restore the default .htaccess file.
Here’s a little trick…
1.Sign in to your cPanel.
2. Check for the File Manager and launch it
3. At this point, when you‘re prompted to select a directory, check Show hidden files (dotfiles).
4. Hit Go.
5. Next, locate your .htaccess file, typically in the public_html directory.
6. Right-click the .htaccess file and select Rename from the context menu options.
7. Specify the new name: .htaccess_backup
8. Now, sign in to your WordPress account and then head to the Settings tab on the left.
9. Go to Permalinks.
10. Be sure not to change any existing settings. All you have to do is click the Save Changes button to re-generate the default .htaccess file.
Disable Faulty Plugins
Plugins are an important part of WordPress website.
Plugins add additional functionality to your website and improve the visitor experience.
Often times, incompatible plugins cause HTTP error 500 WordPress. Disabling all plugins might work.
1.Log-in to your WordPress account, and head to the Plugins tab
2. Check the top Plugin check box or select all plugins individually.
3. Click the Bulk Actions drop-down box and select Deactivate.
4. Click Apply.
That’s it, folks. I hope the error has now disappeared.
If yes, you may want to enable each plugin one by one and test the website for some time. The goal is to identify the faulty plugin that led to this issue
Increase PHP Memory Limit
PHP is a widely used scripting language designed for web development and production.
When the server uses more than excessive memory specified in the php.ini or php5.ini file, it results in WordPress HTTP error 500.
Luckily, there is a way to increase the limit of PHP Memory.
1.Log-in to your cPanel, and go to the File Explorer.
2. Make sure that the Show Hidden Files box is checked.
3. Expand the following directories from the left-hand-side panel:
4. Check for php.ini or php5.ini files.
If you don‘t see either of them, create a new one. Click on the File icon
- memory_limit = 256M
6. Click Save and re-load the webpage.
7. Looking ahead, if the problem keeps appearing, you’ll want to rename php.ini to php5.ini
Check File/ Folder Privileges
Sometimes, the error is caused when one or more important file or folder in the cPanel do not have required access permissions.
You may want to consult your developer to figure out those files/ folders and provide required privileges:
3. 755 is the most recommended permission level which makes the file readable and executable to the user, group and the world.
4. Change the file attributes depending on your requirements, and click Change Permissions.