BlogWordPress Security

How To Fix 500 Internal Server Error In WordPress

Have you ever ever tried to go to your WordPress website solely to be greeted by a message saying Inner Server Error or one thing related?

It would even be taking place to you proper now:

 Internal Server Error WordPress

It’s a scary error, as a result of just like the error establishing a database connection message, your website fully disappears.

Don’t fear an excessive amount of, although. The inner server error message is fixable and your WordPress website’s knowledge ought to nonetheless be totally intact.

On this publish, you’ll study:

  • What the inner server error is, in addition to some of its causes.
  • The right way to repair the inner server error in WordPress.

Web page Contents

What Does The “Inner Server Error” Message Imply?

Inner server error (typically referred to as a 500 inner server error), is a generic error message that your server provides you when it runs into an issue. Principally, it’s telling you that “one thing” went improper… but it surely’s not very particular about what that “one thing” is.

That’s not a really satisfying clarification – however once more, it’s not a really particular error.

What Causes The “Inner Server Error” Message?

As a result of this error message is so broad, there’s not a single drawback that causes it.

With WordPress, essentially the most frequent causes are:

  • A corrupt .htaccess file.
  • A plugin challenge.
  • Hitting your PHP reminiscence restrict.
  • Corrupt WordPress core information.

We’ll present you options for repair all of these issues. However if you wish to shortly slim down precisely what’s occurring, consulting your server’s error logs is a useful approach to diagnose precisely what’s inflicting the issue.

In case your host makes use of cPanel, you may view error logs by going to your cPanel dashboard and clicking on Error Log:

Error Log

Sadly, as you may see from the picture under, these error logs aren’t at all times essentially the most user-friendly paperwork to learn:

Error log

If nothing apparent stands proud within the error logs, you may:

  • Seek the advice of your host’s assist for assist understanding what the problem could be.
  • Leap straight into a number of the frequent fixes that I’m about to stipulate under.

Be aware: The next are confirmed hosts that supply cPanel internet hosting:

  • Bluehost
  • HostGator
  • SiteGround
  • Inmotion Internet hosting

How To Repair “Inner Server Error” In WordPress

Listed here are a number of the most typical methods to repair this message in WordPress. I like to recommend that you simply begin on the high (Potential Repair 1) and work your manner down.

Potential Repair 1: Generate A New .htaccess File

Your .htaccess file is a configuration file in your internet server. WordPress makes use of it to, amongst different issues, arrange your permalink construction.

As a result of it controls the configuration of your internet server, even a tiny mistake in your .htaccess file could cause one thing just like the inner server error message.

Fortunately, this drawback is simple to repair – all it’s worthwhile to do is drive WordPress to generate a brand new .htaccess file.

Right here’s how:

Step 1: Rename your current .htaccess file.

To get began, it’s worthwhile to rename your current .htaccess file. You are able to do this by both:

  • Connecting to your website by way of FTP. You should utilize FileZilla to try this.
  • Utilizing your cPanel’s built-in File Supervisor device.

I’m going to indicate you the method utilizing File Supervisor as a result of it’s the only for many customers. However the core ideas are the identical irrespective of which methodology you utilize.

You’ll be able to entry File Supervisor proper from the cPanel dashboard:

File Manager

When you open File Supervisor, search for the .htaccess file within the root of your website.

Proper-click it, and select Rename:

.htaccess

Rename it to one thing like “.htaccess_old”.

Now, all it’s worthwhile to do is create a brand new .htaccess file to exchange it.

Step 2: Generate a brand new .htaccess file.

To drive WordPress to generate a brand new .htaccess file, go to your WordPress dashboard.

Then, navigate to Settings → Permalinks.

You do not want to vary any settings.

Simply click on the Save Modifications button, and WordPress will mechanically generate a brand new, clear .htaccess file:

Permalinks

And that’s it! Hopefully, your website is working once more.

  • Learn: How To Create A WordPress .htaccess File

Potential Repair 2: Deactivate Your Plugins And Discover Defective Plugin

In case your .htaccess file wasn’t the issue, the following factor that you would be able to strive is deactivating your plugins.

Typically plugin points or conflicts could cause the interior server error. That is particularly possible should you noticed the error instantly after activating a brand new plugin.

By deactivating your plugins, you could find the problematic plugin and take away it.

The right way to deactivate plugins should you can nonetheless entry your dashboard:

For those who can nonetheless entry your WordPress dashboard, go to the plugin administration space and use the checkbox to deactivate all your plugins without delay:

WordPress dashboard

Then, reactivate them one after the other to hopefully discover the problematic plugin.

The right way to deactivate plugins should you can’t entry your dashboard:

With the interior server error in WordPress, you might be almost definitely not in a position to entry the WordPress admin dashboard. On this case, you’ll have to take a barely totally different strategy and deactivate plugins utilizing FTP.

  • Connect with your website by way of FTP or File Supervisor. You should utilize FileZilla.
  • Navigate to the /wp-content/ folder.
  • Rename the plugins folder to one thing like plugins_old.

Rename Plugins Folder

When you rename the folder, all your present plugins shall be deactivated.

Now strive opening your WordPress dashboard, and if you’ll be able to entry it, it is best to pat your self on the again. The problem is likely one of the plugins.

For those who go to the Plugins part of your WordPress, it’s going to present the error “the plugin has been deactivated because of an error; plugin file doesn’t exist.”

Don’t fear… we have now found out that the issue is likely one of the plugins.

To reactivate them one after the other:

  • Rename the plugin folder from plugins_old to plugins.
  • Now from the WordPress dashboard, activate every plugin one after the other.
  • After activating a plugin, browse 3-Four pages in your weblog. Repeat this step till you discover a plugin whose activation causes the interior server error.

In a majority of conditions, this can repair the interior server error drawback.

Potential Repair 3: Enhance Your Internet Internet hosting PHP Reminiscence Restrict

Nonetheless not working? Don’t fear… there are nonetheless extra issues that you would be able to strive.

One other potential challenge is that your WordPress website is hitting its PHP reminiscence restrict. By default, WordPress tries to allocate 40MB of reminiscence for single-site installs (so long as your host permits it).

However should you’re experiencing difficulties, you may manually enhance this restrict (once more, so long as your host permits it).

To do that, you’ll have to edit your wp-config.php file. You’ll be able to entry it both by way of FTP or cPanel’s File Supervisor:

Edit wp-config

Add the next line of code proper earlier than the /* That’s all, cease modifying! Comfortable running a blog. */ message:

outline( 'WP_MEMORY_LIMIT', '64M' );

Bear in mind – this can solely assist in case your host hasn’t already set a PHP restrict that’s decrease than 64M.

Because of this, should you don’t discover a change after modifying your wp-config.php file, I like to recommend reaching out to your host to see what your present PHP restrict is.

Potential Repair 4: Reupload Core WordPress Recordsdata

In case your website nonetheless isn’t working, you may strive importing a clear copy of the core WordPress information.

For this answer, I like to recommend utilizing an FTP program over File Supervisor.

Be aware: Be sure to have taken an entire backup of WordPress earlier than doing this step. You’ll be able to examine WordPress backups right here.

To do that, go to WordPress.org and obtain the most recent model of WordPress:

Download the latest version of WordPress

As soon as the obtain finishes, extract the ZIP file and delete the:

  • Total wp-content folder.
  • wp-config-sample.php file.

Then, add the entire remaining information to your WordPress website by way of FTP. Your FTP program will present you a immediate about duplicate information. When this occurs, be certain that to decide on the choice to Overwrite duplicate information.

Fixing The “Inner Server Error” Message

At this level, one in all these options has hopefully helped you repair the inner server error message in your WordPress website.

If not, I like to recommend chatting with your host’s assist crew and asking them to undergo the error logs with you to pinpoint the problem. And if they will’t assist, you may want to rent an precise WordPress developer to diagnose issues.

Or, you may at all times go away a remark and we will strive to determine the problem collectively!

Download The WPSaviour App Now

Related posts
Tips

Simplify Your Online Presence With WordPress: Hosting

Tips

What You Need to Know About Managed WordPress Hosting

Tips

How To Choose the Best WordPress Hosting

Tips

What to Look for in WordPress Hosting

Leave a Reply

Your email address will not be published.

Pay in your preferred currency
Indian rupee
Euro