How to fix the wordpress error “internal server error”.

October 31, 2022
December 5, 2024

As we know WordPress is easy to use and manage any type of website. But that not means that you can’t face errors. One of the most common errors of WordPress is an internal server error.

At the time of visiting any website, the browser sends a request to the website host where the website controls. Then the server takes these requests and processes them. then also send back resources. At that time server fails to show any type of page or data it gives you an internal server error.

Here some clarifications are given which will helps you.

    1. Clean your browser cache and cookies

The first step for solving that error is clean the browser’s cache memory and also delete cookies. Because sometimes cache memory creates the problem. So after cleaning the cache memory and deleting cookies restart your browser and try to run your website. If it runs well then no problem. but if a website gives still an error then go to the next solution Deactivate plugins and switch to the default theme.

    2. Deactivate plugins and switch to default theme

The second step is first to deactivate all the plugins and check the website. After deactivating the plugins your site runs well then problems create with the plugins. To the finding, activate all plugins one by one and check the website. By doing that you found the plugin that creates the error for the website.

After deactivating all plugins not found any issues then need to change the theme. For that, you should switch to the WordPress default theme.

    3. Turn on debug mode

Following the above steps not helps then it is a better way to switch on the debug mode. Now the question is what is debug mode? So in simple language debug means to find errors. So debugging is useful to display errors or find errors.

WordPress provides the debug facility. For the debug mode first find the wp-config file. This file stores the website’s configuration details. It is located in the root of the WordPress directory. After finding that file finds the below line and make it true.

define(“WP_DEBUG”, true);

If you did not find that line you would add that line but not add false, you should add the true. Now reload your site and check the error.

    4. Check .htaccess file

Still, if you did not solve the error then the chances to have an issue with the htaccess file. It is not good to have issues with the .htaccess file because it is the most important file. It controls how your server runs your website. So login to the FTP and find the .htaccess file.

Change the name to the .htaccess_old. Now create the new .htaccess file and paste the below code. After that reload your site and check if it works or not.

    5. Reinstall wordpress

In the last step, reinstall your WordPress. Before that, it is important to back up your website. After backup reinstalls your WordPress. It is not necessary for all files and folders to reinstall. You should install only main folders like the wp-admin and wp-include folders. For that, you must download the latest version of WordPress.

Related Posts