Are you seeing a 500 inner server error in WordPress?
The inner server error is without doubt one of the most typical WordPress errors. Because the error doesn’t give some other info, many inexperienced persons discover it fairly irritating.
On this article, we’ll present you how one can simply repair the five hundred inner server error in WordPress.
Here’s a fast overview of the matters we’ll cowl on this article.
What’s The five hundred Inside Server Error?
The five hundred inner server error is a typical net server error. It isn’t particular to WordPress web sites and might occur with any web site.
The five hundred within the error message is technically an HTTP error code. Trying up this code will solely present its commonplace description.
“500 Inside Server Error response code signifies that the server encountered an sudden situation that prevented it from fulfilling the request.“
This can be a generic catch-all error message which implies that the server was unable to assign a greater extra useful error message when it encountered the difficulty.
The error web page seems to be totally different relying on which net server software program (Nginx or Apache) your web site is utilizing and which browser you’re utilizing.
Right here is how the Apache error web page could look.

It might look totally different in case you are utilizing Nginx and Google Chrome.
It’ll additionally look totally different if Google chrome is unable to search out an error web page to show:

For inexperienced persons, this may be extremely irritating. There is no such thing as a clue or message that may level them in the appropriate route to rapidly repair it.
Asking how one can repair an inner server error is like asking your physician how one can repair the ache you’re experiencing with out telling them the place the ache is.
Nevertheless, if we all know the widespread causes that set off this error, then we are able to strive fixing them one after the other to resolve the error with out breaking something.
What Causes The Inside Server Error in WordPress?
Inside server error in WordPress is commonly brought on by a corrupt .htaccess file, poorly coded plugins, or your lively WordPress theme.
Different potential causes of the inner server error in WordPress that we all know of are: PHP reminiscence restrict or corrupt core WordPress information.
In some circumstances, the inner server error could solely present up when you find yourself making an attempt to entry the WordPress admin space whereas the remainder of the positioning works superb.
That being mentioned, now let’s check out how one can go about troubleshooting the inner server error in WordPress.
Video Tutorial
In the event you choose written directions, then proceed studying.
Fixing The five hundred Inside Server Error in WordPress
Earlier than you start troubleshooting, just remember to have an entire WordPress backup of your web site readily available.
If in case you have entry to the WordPress admin space, then you may a WordPress backup plugin to create an entire backup of your web site. We advocate utilizing Duplicator to deal with this.
Alternatively, in case you don’t have entry to the WordPress admin space, then you may manually create a WordPress backup utilizing phpMyAdmin and an FTP shopper.
After that, you may comply with the next steps to troubleshoot and repair the inner server error in your web site.
Clear WordPress and Browser Cache
Browsers and your WordPress caching plugins can typically mistakenly retailer a cached copy of an error web page.
The best method to repair that is by first clearing your browser cache.

After that, when you have entry to the WordPress admin space of your web site, then you may empty the WordPress cache by visiting your caching plugin’s settings web page.
For particulars, see our tutorial on how one can clear WordPress cache.
Checking for Corrupt .htaccess File
The .htaccess file is a server configuration file that can also be utilized by WordPress to arrange redirects.
Probably the most widespread causes of the inner server error is the corrupt .htaccess file.
The best method to repair that is by merely visiting the Settings » Permalinks web page within the WordPress admin space after which clicking on the ‘Save Adjustments’ button with out making any modifications in any respect.

WordPress will now attempt to replace your .htaccess file or generate a brand new one for you. Now you can go to your web site to see if this has resolved the inner server error.
In the event you can nonetheless see the error, then it’s worthwhile to ensure that WordPress was capable of generate or write to the .htaccess file.
Typically, as a result of file and listing permissions, WordPress could not have the ability to create or write to your .htaccess file.
Now you can attempt to manually change the .htaccess file. First, it’s worthwhile to login to your web site utilizing FTP or the File Supervisor app beneath your internet hosting account management panel.
Subsequent, it’s worthwhile to rename your essential .htaccess file to one thing like .htaccess_old. This allows you to maintain the file as a backup, however WordPress gained’t acknowledge it.
To rename the .htaccess file, you will want to login to your web site utilizing FTP or File Supervisor app in your internet hosting account’s cPanel dashboard.
As soon as you’re linked, the .htaccess file can be situated in the identical listing the place you will notice folders like wp-content, wp-admin, and wp-includes.
Merely, right-click on the .htaccess file and rename it to .htaccess_old.

Subsequent, it’s worthwhile to create a brand new .htaccess file.
Inside your web site’s root folder, right-click after which choose ‘Create new file’ possibility in your FTP shopper or File Supervisor app.

Identify this new file .htaccess and click on OK to reserve it.
Now, this .htaccess file is presently empty and it’s worthwhile to add default WordPress rewrite guidelines to it.
Merely right-click on the file after which choose View/Edit in your FTP shopper or File Supervisor app.

The empty file will open in a plain textual content editor like Notepad or TextEdit. Now, it’s worthwhile to copy and paste the next code inside it.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
This code is the default rule set utilized by WordPress. Don’t overlook to avoid wasting your modifications and add the file again to the server.
Now you can go to your web site to see if this has resolved the inner server error.
If it did, then give your self a pat on the again since you mounted the inner server error.
Essential: Earlier than you progress on with different issues, just remember to go to Settings » Permalinks web page within the WordPress admin space and click on the save button with out making any modifications. This may regenerate the .htaccess file for you with correct rewrite guidelines to make sure that your submit pages don’t return a 404 error.
If checking for the corrupt .htaccess file answer didn’t be just right for you, then it’s worthwhile to proceed studying this text.
Rising the PHP Reminiscence Restrict
Typically the inner server error can occur if a script is consuming all of the PHP reminiscence restrict.
The best method to improve the PHP reminiscence restrict is by modifying the wp-config.php file. Watch out whenever you do that in case you’re a newbie. You wish to comply with these directions fastidiously as a result of even small errors in WordPress core information can break your web site.
To start, merely connect with your WordPress web site utilizing an FTP shopper or the File Supervisor app beneath your internet hosting account management panel.
You’ll discover wp-config.php file inside the primary folder of your web site. Proper-click on it and choose ‘Obtain.’ This may guarantee that you’ve got a backup of the file in case one thing goes unsuitable.
If you’ve saved that, you may right-click on it and choose ‘View/Edit.’

Contained in the wp-config.php file, it’s worthwhile to add the next code simply above the road that reads ‘That’s all, cease modifying! Comfortable publishing’.
For extra particulars, see our tutorial on how one can improve PHP reminiscence restrict in WordPress.
In case you are seeing the inner server error solely whenever you attempt to log in to your WordPress admin or add a picture in your wp-admin, then you need to improve the reminiscence restrict by following these steps:
Create a clean textual content file in your pc and title it php.iniPaste this code in there: reminiscence=256MBSave the fileUpload it into your /wp-admin/ folder utilizing FTP
If rising the reminiscence restrict mounted the issue for you, then you have got solely mounted the issue quickly. You continue to want to search out the trigger that’s exhausting your reminiscence restrict.
This might be a poorly coded plugin or perhaps a theme operate. We strongly advocate that you simply ask your WordPress internet hosting firm to look into the server logs that can assist you discover the precise diagnostics.
If rising the PHP reminiscence restrict didn’t repair the difficulty for you, then you’re in for some extra troubleshooting.
Deactivate All WordPress Plugins
If not one of the above options labored for you, then this error is more than likely being brought on by a selected plugin put in in your web site.
Additionally it is potential that it’s a mixture of plugins that aren’t enjoying good with one another.
In the event you can entry the WordPress admin space of your web site, then you may merely go to the plugins web page and deactivate all WordPress plugins.

Nevertheless, in case you are unable to entry the WordPress admin space, then you may deactivate all WordPress plugins utilizing FTP.
Merely connect with your WordPress web site utilizing an FTP shopper or the file supervisor app beneath your internet hosting account management panel.
As soon as linked, navigated to the /wp-content/ folder and rename the plugins folder to plugins.deactivated.

WordPress seems to be for plugins within the plugins folder. If the plugins folder is just not discovered, then it is going to mechanically deactivate all plugins.
Now you can strive visiting your web site to see if this resolved the inner server error in your web site.
To revive all of your plugins, you may merely rename the plugins.deactivated folder again to plugins.
Your plugins will now be restored however they’ll nonetheless be deactivated.
Now you can activate plugins one after the other and go to your web site to determine which plugin is inflicting the inner server error.
For extra particulars, see our information on how one can deactivate all WordPress plugins with out WP-Admin.
If deactivating all plugins didn’t repair the inner server error in your web site, then proceed studying.
Swap to a Default WordPress Theme
One potential explanation for the inner server error might be some code in your WordPress theme.
To search out out if that is so, it’s worthwhile to change your theme to a default WordPress theme.
If in case you have entry to the WordPress admin space, then merely go to the Look » Themes web page. If in case you have a default theme already put in then you may merely click on on the Activate button to change theme.

In the event you don’t have a default theme put in, then you may click on on the Add New button on the prime and set up a default theme (Twenty Twenty-Three, Twenty Twenty-Two, and many others).
Now in case you don’t have entry to the WordPress admin space, you may nonetheless change to a default theme.
Merely, connect with your WordPress web site utilizing an FTP shopper and navigate to the /wp-content/ folder.
Proper-click to pick the themes folder and obtain it to your pc as a backup.

Subsequent, it’s worthwhile to delete the themes folder out of your web site. As soon as it’s deleted, go forward and create a brand new themes folder.
Your new themes folder can be utterly empty which implies you don’t have any WordPress themes put in in the meanwhile.
Subsequent, it’s worthwhile to go to the WordPress themes listing and obtain a default WordPress theme to your pc.

Your browser will then obtain the theme as a zipper file to your pc.
Find the file in your pc after which unzip it. Home windows customers can unzip file by right-clicking on it after which deciding on Extract All. Mac customers can double-click on the zip file to extract it.

You’ll now see a folder containing your WordPress theme.
Swap again to your FTP shopper or File Supervisor up and add this folder to the empty themes folder.

As soon as uploaded, WordPress will mechanically begin utilizing the default theme.
Now you can go to your web site to see if this resolved the inner server error.
If this didn’t work, then you may reupload your WordPress themes from the backup or change again to the theme you have been utilizing.
Don’t fear there are nonetheless just a few extra issues you are able to do to repair the error.
Re-uploading Core Recordsdata
If the plugin and theme choices didn’t repair the inner server error, then it’s value re-uploading the /wp-admin/ and /wp-includes/ folders from a recent WordPress set up.
This may NOT take away any of your info, however it might resolve the issue in case any file was corrupted.
First, you will want to go to the WordPress.org web site and click on on the Obtain button.

This may obtain the WordPress zip file to your pc.
Go forward and extract the zip file. Inside it, you can find a wordpress folder.

Subsequent it’s worthwhile to connect with your WordPress web site utilizing an FTP shopper.
As soon as linked go to the basis folder of your web site. It’s the folder that has wp-admin, wp-includes, wp-content folders inside it.
Within the left column open the WordPress folder in your pc.
Now it’s worthwhile to choose all information contained in the wordpresss folder and add them to your web site.

Your FTP shopper will now switch these folders to your server.
It’ll ask you whether or not you wish to overwrite the information. Choose ‘Overwrite’ after which choose ‘At all times use this motion’.

Your FTP shopper will now change your older WordPress information with new, recent copies.
In case your WordPress information have been corrupted, then this step will repair the inner server error for you.
Allow Debug Logs in WordPress
WordPress comes with a built-in system to maintain logs for debugging.
You may flip it on by utilizing the WP Debugging plugin. For extra particulars, see our information on how one can set up a WordPress plugin.
As soon as activated, the plugin will activate debugging logs in your WordPress web site.
In the event you don’t have entry to the admin space of your WordPress web site, then you may activate debugging by including the next code to your wp-config.php file.
outline( ‘WP_DEBUG_LOG’, true);
Upon getting turned on debug logs, you may view these logs by utilizing an FTP shopper and navigating to the /wp-content/ folder.

You may open the debug log file in a textual content editor and it’ll present you an inventory of errors and warnings that happen in your web site.
A few of these errors and warnings may be innocent incidents that will not want fixing. Nevertheless, in case you are seeing an inner server error in your web site then these could level you in the appropriate route.
Ask your Internet hosting Supplier
If all strategies fail to repair the inner server error in your web site, then it’s time to get some extra assist. Contact your internet hosting help workforce and they’ll have the ability to test the server logs and find the basis explanation for the error.
If you wish to proceed troubleshooting by yourself, then see our final WordPress troubleshooting information for inexperienced persons.
We hope this text helped you repair the inner server error in WordPress. You may additionally wish to see our full checklist of the commonest WordPress errors, and our information on how to decide on the most effective internet hosting supplier.
In the event you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may also discover us on Twitter and Fb.
The submit Repair the five hundred Inside Server Error in WordPress first appeared on WPBeginner.


