Select Page

Tutorial how to fix HTTP 500 Internal Server Error in WordPress

HTTP 500 Internal Server Error is one of the common WordPress error but we can assure you that they are fixable. It requires a little bit of patience and few tinkering. The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the website’s server, but the server could not be more specific on what the exact problem is.

How do I fix 500 Internal Server Error?

Check for corrupt .htaccess file.

Check for the corrupted .htaccess file is the first thing you should do when troubleshooting the HTTP 500 internal server error in WordPress. Rename your main .htaccess file to something else e.g. .htaccess_old and upload the good .htaccess file into the same directory of your web site hosting account.

Try to load your website to see if this solved the problem.

You can rename .htaccess file by accessing WordPress admin panel and go to Settings » Permalinks and click the save button. This will generate a new .htaccess file for you with proper rewrite rules to ensure that your post pages do not return a 404.

Increase the PHP Memory limit.

If you are seeing the internal server error only when you try to login to your WordPress admin or uploading an image in your wp-admin, then you should increase the memory limit by following these steps:

  1. Create a blank text file called php.ini
  2. Paste this code in there: memory=64MB
  3. Save the file
  4. Upload it into your /wp-admin/ folder using FTP

This is a temporary fix for you because increasing the memory limit it means something is exhausting your memory limit. It may be a bad coded plugin, widgets, codes or even a theme function. Look into the server logs will help you to find who the culprit is.

Deactivate all plugins.

If none of the above worked for you, you must deactivate all WordPress plugins at once. Then, re-activate one by one and see which plugins causing the HTTP 500 internal server error.

Re-uploading WordPress Core Files

4. If no. 3 doesn’t not fix the HTTP 500 internal server error, you might want to re-upload the wp-admin and wp-includes folder from a fresh WordPress install. Corrupted files can trigger the HTTP 500 internal server error.