Bh Rubel

Learn and Be Succeed

How to Fix: Internal Server Error Step by Step

WordPress is one of the most remarkable websites builders. It is easy to use and manage your website. At the time of managing your site, you may face many errors. Internal Server Error is one of them. It is the mater of pain to the beginners if he does not know how to fix the error.

Are you logging? Don’t work? Does it show 500 Internal Server Error? What a pain! Don’t worry.

In this article, we will show how to fix the error. Stay with us and remove your pain.

What causes Internal Server Error in WordPress?

It occurs due to many reasons. It is a generic nature of this error, that does not tell the developer. Otherwise, the internal server error is not particular to WordPress. It can happen with any website under any web server.

In your website, if it occurs, you will see a message like:

Internal Server Error

This message will confirm that this is an internal server error. It happens in WordPress often caused by plugin or theme functions. Corrupted .htaccess file and PHP memory limit.

Now we will explain the solution of the error.

Deactivate all Plugins

First of all, you should check all the plugins installed. To do this, you need to deactivate all plugins. Then reload your site, and if it shows the error again, you should realize that plugin is not the reason for this error.

If any plugin is the cause of this error, it won’t show it again.
After that, you need to identify what plugin is responsible for the issue. To do this, you must activate all plugins one after another.
After activating which plugin, it shows the error again. You have to understand this plugin is the main culprit for this error. By deactivating and deleting the plugin, you may fix the error.

Theme checking

The theme used for the website may be responsible for the error. So you should check the theme after plugin.

To check the theme, you have to run your website with another theme. You may use anyone from the default themes. If your website runs well with the default theme, you will realize that the fault was the theme. To fix the error, you should change the used theme with your website.

Checking for Corrupt .htaccess File

Corrupt .htacces file may be a cause of the error. For knowing the corrupt .htaccess file, first of all, you need to rename the file. To rename the file, you have to login your cPanel and find out the .htaccess file from the file manager, where you will see folders like wp-content, wp-admin, and wp-includes.

Once you have renamed the .htaccess file, reload your site to see if this solved the error. If it has done, pat yourself on the back as you fixed the internal server error.

After doing this, you need to go to Settings => Permalinks page in the WordPress admin area and click on the Save button without making any change. It will create a new .htaccess file with proper rules that will ensure the page do not return a 404 error.

Increasing the PHP Memory to Fix Internal Server Error

Exhausting PHP memory limit is a common issue. Sometime it may be the reason for the internal server error.

What is the cause of exhausting PHP memory limit?

A poorly plugin and a theme function are the main reason for the issue.

In this tutorial, we will cover how to increase PHP memory limit in WordPress.

Increasing the memory limit is not so critical. By following these steps, you can increase the memory limit.

At first, create a file called php.ini then paste the code: memory=64MB. Doing this, save the file and upload into the wp-admin folder. If the PHP memory limit is the cause of the error, then the problem is solved.

Re-uploading core File

In spite of using all of the methods of the above, it did not fix the internal server error. Then you may re-upload the wp-admin and wp-includes folder from a fresh WordPress install.

If in case any file was corrupted, it may solve the problem without losing any information.

To re-upload, you need to visit the WordPress.org website from where you can download fresh WordPress clicking on the Download button.

Re-uploading core File

By download, you will get a WordPress zip file to your computer. Then you need to extract the zip file, and you find a WordPress folder. From the WordPress folder, you have to take wp-admin and wp-includes folders and need to replace the older wp-admin and wp-includes to your web server.

If your WordPress files were corrupted, then this step will fix the internal server error for you.

Ask your Hosting Provider

If all methods of the above fail to fix the internal server error on your website, then you will need some help. It is better to contact your web hosting support team. They can help to find out the cause of the error.

Popular Posts