How To Fix Internal Server Error In WordPress
Last modified: June 8, 2026
An Internal Server Error (also shown as a “500 Internal Server Error”) is one of the most common and frustrating problems you can face on a WordPress site. Unlike more specific error messages, a 500 error gives you almost nothing to work with — often just a blank screen or a generic message with no indication of what went wrong.
Despite how vague it appears, the cause is almost always one of a handful of fixable issues: a corrupted .htaccess file, a faulty plugin or theme, exhausted PHP memory, or a misconfigured script. The steps below walk you through diagnosing and fixing each one.
How to Fix WordPress Internal Server Error
When you see an Internal Server Error, it is very rarely a problem with your server itself. But it is very solvable; here is how.
* This button will show the rest of the post and open up an offer from a vendor
Step One: Turn On Debugging
The first thing to do is to turn on the debugging option on your WordPress website. This allows you to see what is going on.
To do this, go to your site’s wp-config.php file and edit it. You need to find the line that says:
define( "WP_DEBUG", true );
If you can’t find it, you might need to add it to the file. Be sure to save the new version of the wp-config.php file.
Step Two: Reload Your Homepage
With debugging turned on, reload your site and navigate through both the front end and the admin area. The debug output should now display PHP errors and warnings directly on the screen, including the file path where the issue originates. Look for phrases like “Fatal error in…” or “Call to undefined function in…” followed by a file path — these point directly to the theme or plugin causing the problem. If you see a specific plugin name in the error path, skip straight to Step Three and disable that plugin first before disabling everything.
Step Three: Disable All Plugins
If you don’t know where the problem is, then you need to disable all plugins and switch themes. To do this you need to go to the plugins file in your WordPress files, using an FTP client and then change the name of the plugins file to ‘plugins_disable‘. Then immediately rename the file to ‘plugins‘ again.
This will disable all the plugins. Check your website now. It should display, but it will not have many of the features.
You can do the same with the themes.
If you notice your website is back on and displaying, it is a plugin/theme causing a problem. You can switch them on, one at a time, to find out which one is causing the problem. You can do this in the dashboard.
Step Four: The .htaccess File
Again working in the FTP client locate, create a local backup and then delete .htaccess file on the server. If your website starts working, it is because there was an error within the .htaccess file. Now you can start to find out the problem by uploading your local back up and deleting sections.
Every time you delete a section, test your website. If your website works again, that section was causing an error and you can reload the entire file minus that section.
Step Five: Increase Your Website’s Memory
Another common problem is that the memory limit has been exceeded. This seems to be more common with websites on shared hosting. To change this, you need to go to the wp-config.php file through your FTP client.
Then find the line that starts
wp_memory_limit
Change the value after this to 64M.
If that line doesn’t exist, add in the following code.
define('WP_MEMORY_LIMIT', '64M');
This should solve the problem, for a while. However, there could be an underlying issue, such as a faulty plugin that is using all your resources.
Step Six: Final Solutions
If none of the steps above have resolved the error, there are a few more things to try before contacting your host. First, check your file permissions via your FTP client — WordPress files should be set to 644 and directories to 755. Incorrect permissions are a surprisingly common cause of 500 errors that don’t show up in debug logs. Second, try re-uploading the WordPress core files by downloading a fresh copy from WordPress.org and replacing everything except your wp-content folder and wp-config.php file. This fixes corrupted core files without touching your content.
If the error persists after all of the above, contact your hosting provider’s support team. They can access server-level error logs that you cannot see and identify configuration issues on their end.
Don’t Get Frustrated By Your Internal Server Error
Be sure that your website is back up and running as soon as possible using this quick guide to fix an internal server error on WordPress. For other server errors, the 502 Bad Gateway and 503 Service Unavailable error is another common one — it usually means a proxy or CDN misconfiguration rather than a WordPress-level issue.
Website Maintenance – Use Promocode: scanwp
Advanced JetPlugins for Elementor
Semrush 14 days trial
Kinsta – Managed WordPress Hosting
Bluehost Hosting