Connect with us

Fixing HTTP 500 Internal Server Error

solution

Fixing HTTP 500 Internal Server Error

How would you feel when you are deeply engaged with your site and, if suddenly a blank page with an error message “Internal Server Error” appears on your WordPress website? I’m sure that you will get irritated. It will be more frustrating especially for the WordPress beginners.

If you’re lucky, the WordPress admin yet works for you. But in some cases, the situation is reverse. Don’t fear. Take a deep breath. We are here to help you in solving your problem. In this article, we will give you a clear introduction about the internal server error and how to fix it.

What is 500 internal server error

The 500 Internal Server Error is a server-side error. This means that the problem probably is not with your computer or internet connection, but the problem is with the web site’s server.

The number ‘500′ is the server response code for your request and ‘internal’ means that the error is on the server side or with-in the server.

This is one of the most frustrating errors that occurs in WordPress because the Error 500 provides no exact information about the root of the problem.

Why internal server error in WordPress occurs?

An HTTP internal server error is a server-side problem. When you type your site URL in the address bar, you are requesting the server to display the page. When this Error 500 occurs, the server is unable to show you the requested page, and Therefore it gives an error message which tells you that there is an error.

The Error code-‘500 internal server error’ appear on every page of your site when there is a problem with the server or the file system of your WordPress site.

Sometimes, this error is caused by a PHP memory limit. On the other hand, it can also be caused by a corrupt theme or plugin.

Reasons for HTTP 500 internal server error

There are lots of reasons why your site displays a 500 Internal Error Message to your users. As the cause is not specific, it is hard to diagnose the cause for the HTTP error 500. You need the patience to troubleshoot it.

Here are some situations where you will face the problem with error page 500 internal server error in WordPress.

Damaged .htaccess files

Most commonly, the 500 internal server error occur due to the incorrectly configured .htaccess files. This can also arise when these files were missed.

Incorrect file permissions

The file permission allows specific accessibility rights. Every Folder in WordPress must have the file permission value as 755, and every file must have the numeric value as 644. If these are values are violated then, there is a chance of occurring HTTP Error 500 Internal Server Error.

Incorrect index.php file

If your index.html file is incorrect then, it will rise an Internal server error. Sometimes, index.html file may miss or damaged or incorrectly defined. In these cases also, the error arises.

Low PHP Memory Limit

PHP memory plays a large part in what powers a website, and it has its limitations in a similar way the system or phone you’re using to read this post has its own memory limitations. When you reach your limit with PHP memory, you’ll experience an issue. One of them is the HTTP Error code “500 Internal Server Error” rises.

Corrupted files

improper or errors in file transfer to the web server cause corruption of files. These corrupted files appear good but, something in the process caused the file to be unusable by the server. These corrupted files can cause an HTTP 500 Internal Server Error.

Newly uploaded theme

Every WordPress theme presents unique features and facilities. To avail them, many users frequently turn to new themes. These newly uploaded themes can sometimes cause the HTTP error code ‘Internal server error‘.

BACKUP! Before you finally make any of the following changes to your website, it is strongly recommended that you backup your site so that you can revert to an old version if something goes wrong.

Solutions for HTTP Error Code “500 Internal Server Error”

Internal server error on your WordPress Website is the most incredibly annoying error that you cannot afford. We can assure you that the error is fixable.No matter what the cause, there are many ways to troubleshoot and fix your site. Try these simple procedures before going to do actual troubleshoot.

Sol 1: Reload the web page.

Reloading the error page can sometimes easily solve the error. You can do page reloading by clicking the refresh/reload button or press F5 button on your keyboard. Now enter the URL again from the address bar and check whether the error vanished. if not, follow solution 2

Related:  How to Fix Parse Error: Syntax Error in WordPress ?

Sol 2: Clear your browser cache and cookies.

If there’s a problem with the cached version of the page you’re viewing, it could be causing HTTP 500 issues. Some 500 Internal Server Error issues can be corrected by deleting the cookies associated with the site you’re getting the error on.

If both of the solutions 1&2 does not work, then the problem is truly from them server side. To solve this, check the below mentioned solutions.

Sol 3: Enable PHP Debugging

Before contacting your host,just open the error log in your WordPress site. This will help you get a clue for the cause of the 500 Interna Server Error. To access the error log, Follow the below steps.

1.Log into your Cpanel.

2.Search for ‘Error Log’ under ‘Logs’ section.

3.Click on the icon to open and see the error logs.

If the error is due to plugins, follow solution 6.

When the error is like “SoftException in Application.cpp:256: File “.. /public_html/index.php” is writeable by group” appears then, try solution 14.

Both of these are not the case then, follow solution 4.

Sol 4: Check if admin works

Visit your website admin at http://yoursite.com/wp-admin/. You can be reasonably sure that the issue is with a plugin or with your theme if the page loads properly and allows you to log in. Follow solution 8(b) if your admin loads. If it does not load, follow solution 8(a).

 Sol 5: Set File Permissions

If the file permissions are set incorrect, then this will cause an Error ‘HTTP 500 Internal Server Error’. To set the Permissions correctly, Login to your account through FTP. Give a right click on file and select file permissions option.

A pop-up window appears before you. Check and set the values correctly. Once you have done this, click on ‘ok.’

Do this for all files and folders. If this does not work, jump to solution 9.

 Sol 6: Deactivate the plugins

One of the reasons causing the 500 Internal Server Error is the WordPress plugins. If you are getting this error after activating a new plugin, i recommend you to deactivate the new plugin. Sometimes incompatible plugins can also cause this error. Therefore it is better to deactivate all the plugins rather than one. For this, you need to do the following process.

  1.  Log into your account through FTP.
  2. Find the ‘wp-content‘ folder in your root directory.
  3. Inside wp-content, search for ‘plugins‘ folder.
  4. Rename this folder with any other name like ‘plugins.test‘.

This will not delete the plugins but disable them which means the code of the plugins cannot be executed by the server. Now login to your site and activate the plugins one-by-one. Through this process, you can find the fault plugin and delete it. This will solve your problem if the error is due to the plugins. If this fails to bring you out of the server error HTTP 500 Internal server Error in WordPress then, follow solution 7or solution 13.

Sol 7: Restore the default theme

Sometimes, the newly uploaded theme can also cause the 500 internal Server Error. To avoid this situation, just restore to the default theme. The procedure is similar to that of the plugins. Check the following steps to deactivate the current plugin.

  1. Login through FTP.
  2. Search for ‘the wp-content’ folder in the root directory.
  3. Inside this folder, find ‘themes’ folder.
  4. Give a right click on that folder and select ‘Rename’ option.
  5. Change the folder name to any other name like ‘oid_themes’.

This will deactivate the current theme and restore back to the default theme. This will solve the error Internal Server error in WordPress. if you could not get out of it, then try solution 10.

Sol 8: Increase PHP Memory Limit

The plugins, WordPress themes, and scripts you use on your site use PHP memory to load and work on your site. When a browser requests these plugins and scripts, they load with the help of your site’s PHP memory. Increasing the memory limit will help you in solving the conflict.

a) If the error is occurring in WordPress admin, follow this procedure

Create a blank text file in notepad and name it as ‘php.ini’. write a line as ‘memory=XMB’. Replace X with one of a series of numbers: 32, 64, 128, 256, 512 based on your requirement. Now upload this file to ‘wp-admin’ folder using FTP.

If you already have the php.ini file in your WordPress and if the value is X MB, Change the value as ‘XXMB’. This will increase the PHPMemory limit. Just follow the Solution 13.

b) If the error is occurring other than WordPress admin, follow the below procedure.

Login through FTP. Select wp-config.php file in the root directory. Open the file and search for ‘WP_MEMORY_LIMIT’. Change the value as 128 or 256.

Related:  Responsive Restaurant WordPress Themes

This will kick away the error. If it fails to do so then, skip to solution 9.

Sol 9: Delete the .htaccess files

To get out of this error message, you have to delete this file and recreate it. For this, you need to do is to Login to your account through FTP. Select File Manager and click on the .htacceess file. Give a right-click on it and select delete option.

Now, go inside your WordPress. Select Settings > Permalinks From your left-hand navigation menu. Don’t attempt to do anything. Just give a click on the ‘Save Settings’ option. Try reloading the site to verify if the 500 Internal Server error in WordPress have been resolved. If this fails to kick out the server error 500 then, check Solution 10.

 Sol 10: Reupload the files

To get out of this error, Download the latest version of WordPress and Extract the files to the specific folder. Now select the ‘wp-admin’ and ‘wp-includes’ and upload them to the root directory.

Remember to delete old files in the current WordPress before you upload new ones to get rid of confusion among the new and old files. If this is not helpful then, follow the Solution 11.

 Sol 11: Check PHP version

In some cases, the php version plays a role in raising an error ‘500 Internal server error’ on your WordPress Website. if you are using PHP version above 5.3 then, check whether your .htaccess file consists of “register_globals = on” line.

If it exists then, you need to remove this line as the “register globals” only support till PHP version 5.3. Now reload your Website. This will flush out the error due to PHP version. If this is not the case causing the error then, the Solution 12 help you.

Sol 12: Upgrade the PHP version

PHP version also can be a reason for the rise of 500 Internal Server error. If the above solution did not work then, try the following process to upgrade the PHP version.

  • Log into your Cpanel.
  • Look for Software and Services, then click on PHP Configuration.

Here you can find the current PHP version that has is being used by your site.

  • Click on the drop-down arrow to choose the higher versions. Click on ‘Update’ button to change to Update changes in PHP version.
  • Once the version has been updated, you will get a confirmation message.Now you can go back to your WordPress URL and verify whether the error has been resolved. If this could not resolve the problem, then follow the Next Solution 13.

Sol 13: Edit the .htaccess file

Sometimes, when you try login into your account through the wp-admin page, you will get an error “500 Internal server error”. In this situation, it is one of the solutions to add the following lines to your .htaccess files.

1AddType x-mapp-php5 .php

If this won’t help then, follow the next solution 15.

Sol 14: Change access Permission of index.php

Sometimes, the /wp-admin/ shows the Internal Server Error in your website whereas the /wp-login.php/ allows your to enter into your WordPress dashboard. This is may be because of the file permission set as ‘0664’ for the index.php file. So To change the file permission, Login through FTP.

Go to root directory and search for the wp-admin folder. Inside this folder, you can see the file index.php. Now give a right click on the file and select file permissions. A pop-up window opens. Change the value from ‘0664’ to ‘0644’.

 Sol 15: Incorrect server configuration

If your web server is configured incorrectly then, they can cause 500 Internal Server Error Message. If you have checked all the remaining causes and if they are not helpful in resolving the issue then, the problem will surely lie with server configuration. Therefore, the web hosting support should take care of the problem. For this, you need to give a call to your Web Host Management team.

Conclusion:

The WordPress Internal server error is the scariest error message that the WordPress users won’t like to view. It may be difficult to solve but most of the time, they can be corrected easily using the methods described above. We hope our HardWork has benefited you. For more information, Keep following us.

Continue Reading
You may also like...

We are a WordPress plugin developer company that focuses on useful WordPress plugin creation and empowering people to earn passive incomes from their blogs. We build unique and groundbreaking plugins that will revolutionize your blog!

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in solution

    Sign up for our newsletter and get a free affiliate e-book!


    About Me:

    Szabi Kisded

    Hi, my name is Szabi and I'm documenting my journey selling plugins on CodeCanyon. I will show you every step of it: learning to code, plugin ideas, WordPress stuff and more. Read more…

    Mega Plugin Bundle:

    CodeCanyon Portfolio:

    Learn to Code Plugins:

    Latest Promotions:

    Recommended Theme:

    Start Your Own Blog:

    Recommended VPN:

    Translate Your Blog:

    AdSense Alternative:

    Best Article Spinner:

    Popular Posts:

    Latest Posts:

    To Top