How to Solve 500 Internal Server Error

This is another common problem 500 Internal Server Error that almost every WordPress website encounters at least once. There are several potential causes.

The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the website’s server

Causes:

  • Exhausted PHP memory limit
  • Corrupted plugin functions
  • Corrupted theme functions
  • Corrupted .htaccess
500 Internal Server Error

Solve Many way to 500 Internal Server Error

Method 1. Increase the memory limit

Since exhausted memory limit is one popular reason of this error, it is recommended to increase the memory limit. To increase the limit, open your wp-config.php file and add the following line of code within the main PHP tags.

define('WP_MEMORY_LIMIT', '64M');

The above code increases your memory limit to 64M.

Method 2. Edit .htaccess file

Since the problem is usually caused by a corrupted .htaccess file, you would need to edit your .htaccess file. Open your .htaccess file from the FTP or file manager and rename it with .htaccess old. Refresh your website and see if the problem persists. If this fixes the problem, click on settings > permalinks and hit save changes to reset .htaccess.

Method 3. Delete your browser’s cookies

Delete your browser’s cookies. Some 500 Internal Server Error issues can be corrected by deleting the cookies associated with the site you’re getting the error on.

After removing the cookie(s), restart the browser and try again.

Method 4. Deactivate all the plugins

If changing your .htaccess file did not have any impact on the problem, you might want to check your plugins. Deactivate all your plugins by clicking on plugins ? installed plugins. Choose “deactivate” from the “bulk action” drop down and hit apply. It will automatically deactivate all your plugins. Now go to your website, refresh it and check if the error is gone. If so, activate your plugins one by one and see which plugin has caused the problem.

Method 5. Replace wp-admin and wp-includes folders

If nothing worked, try replacing your wp-includes and wp-admin folders with fresh copies from a WordPress install. Save them and upload. Refresh the browser and see if the problem is resolved.

Many browser error messages are similar to the 500 Internal Server Error message because they’re all server-side errors, like 502 Bad Gateway, 503 Service Unavailable, and 504 Gateway Timeout.

Leave a Reply