WPLounge

WordPress (500) Internal Server Error: possible solutions

WordPress (500) Internal Server Error- possible solutions

Is your WordPress website showing an internal server error? This error and its statuscode 500 frequently occurs on WordPress websites.

Various other errors such as the “404” error message, have a straightforward problem that relates to the URL of a page. The HTTP statuscode 500 (Internal Server Error) could have many different causes. Therefore, users should analyse recent website activities to actually find out what happened.

WPLOUNGE RECOMMENDS..
Divi theme & Divi Builder
Elegant Themes is selling more than
85 premium themes (including Divi!) for only $89!
Check Elegant Themes »

WordPress 500 Internal Server Error: possible solutions

Finding the solution of an internal server error requires patience. To solve an internal server error, one should first examine what is causing the problem. WordPress internal server errors usually arise from WordPress plugins but could also be caused by the hosting provider.

Plugins, themes or code changes

An internal server error does not come naturally. Bare in mind: Double check if you or someone has recently made changes to the code. Have you installed a plugin or theme? Or have you installed one or more updates? These are various possible causes of an internal server error. Assuming that you have made a backup of your WordPress website, restore a recent backup and see if that solves the error

.htaccess file

.htaccessIf the aforementioned causes don’t apply, you might want to check the .htaccess file. Log into your server or hosting through FTP and change the name of your .htaccess file in (for example) .htaccess2. This file is located in public_htmlprivate_html or in httpdocs/httpsdocs.

After you renamed the .htaccess file, go to WordPress Settings > Permalinks and click on “Save” (without making changes) at the bottom of the page. A new .htaccess file will then be made. Thereafter, check if your pages and posts still work and if your internal server error disappeared.

Keep reading if the internal server error still occurs.

Deactivate Plugins

PluginsPlugins with coding errors can also cause an internal server error. Another possibility is that certain plugins are not compatible with other plugins or the WordPress theme that you use. If you are still able to log into WordPress, go to plugins and deactivate the plugins one by one without deleting them. Check after every plugin if the internal server error disappeared.

Another option is to deactivate all the plugins. When the server error disappears, you should activate the plugins one by one and check if the error reappears.

Raise PHP Memory Limit

Internal Server Errors can also occur when exceeding your PHP Memory Limit. To rule out the possibility of a PHP memory limit issue, you can try the following:

  • Built a text file and name it php.ini
  • Paste the following code to this text file: memory=64MB
  • Safe the file and upload it through FTP to your /wp-admin/ folder.

Reupload WordPress Core files

WordPress

You could reupload the WordPress Core files. However, you should make a backup of your website to ensure that nothing gets lost.

You can download Core files via WordPress.org. Click on the blue button:”Download WordPress“. Unpack the ZIP file, upload files via FTP and overwrite existing files.

Many internal server errors are solved by overwriting the WordPress Core files.

Contact your hosting provider

If the internal server error still occurs you should contact your hosting provider. Established and recognised hosting providers usually have customer support that could help you solve the problem.

Rate this article

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Comment