4. How to Resolve 500 Internal Server Error on Your WordPress Website.
Increasing PHP MEMORY LIMIT IN WORDpRESS
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.
@ini_set(‘upload_max_size’ , ’64M’);
php_value upload_max_filesize 64M
php_value post_max_size 64M
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.
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.