500 Internal Server Error

500 Internal Server Error

Hi Guys, today I will discuss a very common error we see and don’t know what to do with this error as debugging this error might be a tedious job. In wordpress, the most common reason of a 500 Internal Server Error is .htaccess file, conflicting or corrupt theme or even a corrupt installation.

in order to find out the reason of this error, enable debugging by setting WP_DEBUG value from false to true. This code could be found in wordpress root folder wp-config.php.

Locate the following code:

define(‘WP_DEBUG’, false);500 Internal Server Error

And edit it to:

define(‘WP_DEBUG’, true);

Once this is enabled check for the errors in log files.

How to fix it:

The most possible reason for 500 Internal Server Error could be .htacess file, let’s take care of this first.

If you have control panel access go to file manager and navigate the .htaccess file stored on the root of wordpress folder or use a ftp client to access the same. Rename the .htaccess file to something like .htaccess_backup. Now refresh your website and see if problem is resolved, if it is not than you will have to regenerate .htaccess file which can be easily done by opening your websites admin panel. Click on the Settings -> Permalinks and resave it. This should fix the issue.

Other alternate could be deactivate installed plugin one by one and refresh website, you could also change the theme as some of the faulty themes or plugin could cause 500 internal Server Error.

You can also try to increase PHP memory limit just to make sure that memory limit is not less than the required.

if none of the above works for you, download a latest wordpress copy and upload wp-admin and wp-includes directory replacing the existing one.

 “I am PHP Freelancer having more than 7 years of experience, if you want to do any project with me then you can contact me.”

Be Social, Share!