4. How to Resolve 500 Internal Server Error on Your WordPress Website.


Sometimes internal server error can happen if you are exhausting your PHP memory limit. Increasing PHP memory limit in WordPress to fix that.

Some of the most common ways of increasing a WordPress website’s PHP memory limits is by altering the code in one of these files:

  • Functions.php File
  • .htaccess File
  • PHP.ini File
  • wp-Config.php File

You need to open the above file and paste the below code in it.

Function File

@ini_set(‘upload_max_size’ , ’64M’);
@ini_set(‘post_max_size’, ’64M’);
@ini_set(‘max_execution_time’, ‘300’);

.htaccess File

php_value upload_max_filesize 64M
php_value post_max_size 64M

WP-Config File

define(‘WP_MEMORY_LIMIT’, ’64M’);
ini_set(‘post_max_size’, ’64M’);
ini_set(‘upload_max_filesize’, ’64M’);

PHP.ini File

memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
file_uploads = On

checking for all plugins

If none of the above solutions worked for you, then this error is most likely being caused by a specific plugin. It’s also possible that it is a combination of plugins that are not playing nice with each other.

If you have access to the admin dashboard of your WordPress website, you have to deactive all WordPress plugins at once. Refresh your website after deactivation.

Resolve 500 Internal Server Error

What’s worst is sometimes you get locked out of your WordPress admin panel, so you can’t even deactivate the plugins in an easy way. We will show you how to deactivate all WordPress plugins when not able to access wp-admin area in the following article.

Then check your website again. If the site starts functioning properly, then the internal server error must be due to the plugin installed on your WordPress. Now, you need to activate each plugin one by one and refresh your website after each plugin activation. The problematic plugin  will soon be indentified as it will result in a 500 Internal Server error for your website. Get rid of that plugin, and report the error to the plugin author.

Continue >>