Loading new...

How to Fix Internal Server Error in WordPress

September 29, 2020

The 500 internal server error runs on every page of your site when there’s a problem with the server or file system powering your site. The cause most likely happens in the root directory, where your WordPress files are, but it can also be caused by a problem on your host’s server.

This is one of the most frustrating errors that can happen in WordPress. It never has a straightforward solution, demanding a lot of troubleshooting that can eat up your time and patience. But we’re going to try to help alleviate some of that stress by recommending several solutions to this problem and walking you through each.

What is the 500 Internal Server Error?

The web definitions of the 500 internal server errors are somewhat unclear. There’s no real indication as to what went wrong and caused the error.

The only sure thing is that the error is caused by some operation that went wrong on the website’s end. Particularly in WordPress’s case, this can mean that a script that’s part of a theme or a plugin did something it shouldn’t have done, and now your server has crashed.

internal server error

 

How to Fix WordPress 500 Internal Server Error

We recommend you perform these steps in order. That is, start at Step #1 and work your way through the list. In a few situations, we’ll tell you to skip ahead based on one of the steps’ results. But in general, top to bottom!

Beyond that, just a reminder that we always recommend backing up your site before making any changes in this list. If you can’t reach your WordPress dashboard to use a backup plugin, you should still be able to create a backup through your hosting dashboard — ask your host’s support for help if you’re not sure how.

Fix 1: Create a Backup

First, you need to create a backup of your site to make changes to its root directory. If your web hosting server offers website backup, use it. But, it is better to create a backup of your own.

You can utilize a WordPress backup plugin such as BackUpWordPress, VaultPress, and BackupBuddy. If you don’t have it already, it’s time to get one.

Fix 2: Know How to Use an FTP Client

You will also need to know how to use an FTP Client. You can also use a File Manager. However, an FTP client is faster, customizable, robust, and more accessible to use. An FTP client is a tool that allows you to access and edit your website’s server files.

FileZilla is the most popular FTP Client. It is open-source software. However, you can use an FTP client of your choice.

Fix 3: Troubleshooting Options

Now, let’s look at a few general troubleshooting options to remove the WordPress internal server error.

  1. Create a New ‘.HTACCESS FILE’
  2. Using the FTP client, open your website’s root directory named public_html.
  3. You should be ready to see files named wp-admin and wp-content.
  4. If not, press on the Server tab, and select Force Show Hidden Files option to view the hidden files.
  5. Find your .htaccess file, and right-button buy valium in canada click to rename the file as .htaccess.bak. It will delete the old file.
  6. Now you need to create a new file.
  7. Go to Settings ? Permalinks.
  8. Scroll down and click the Save Changes button. Don’t make any changes.

The .htaccess file handles the contour of your web server. If the 500 internal server error was due to this configuration matter, creating a new .htaccess file will resolve it.

Expand your PHP Memory Limit

If this doesn’t solve your WordPress HTTP error, you can try increasing your PHP memory limit. Usually, your host will set the boundary for PHP memory. It is often low for a shared hosting plan. (Maybe it’s time to get an entire hosting plan.)

WordPress will try to extend this limit by itself. However, it can’t pass the limit set by your host. So, you’ll need to do it manually.

  1. Open your root directory.
  2. Locate the wp-config.php file and download it by right-clicking.
  3. Add the following code under the opening PHP tag using a text editor of your preference.
  4. define(‘WP_MEMORY_LIMIT’, ‘250M’);
  5. Now, save and re-upload the data to your root directory.

Let it replace the original file. Refresh your FTP client and your site to see if the answer code 500 continues to show. If it does, the PHP memory limit is not the cause. So, you should eliminate the above code from the wp-config.php file, save it, and re-upload it to your root directory.

Sometimes, however, you may require to increase the memory limit to more than 250MB. So, this will be a trial and error method depending on your website’s required memory limit.

Identify and Replace Faulty Plugins

Next, you can try identifying and replacing faulty plugins to resolve the issue.

  1. Go to the WordPress admin section, and start deactivating your plugins one by one.
  2. After each deactivation, refresh your website to verify if the error code 500 disappears.
  3. You can also utilize the FTP client to identify a faulty plugin.
  4. Enter the root directory and open the wp-content folder.
  5. Now add each plugin one by one to the empty directory, and refresh your site each time to see if the error is fixed.

If it does, remove the plugin in question. If the plugin is essential for your website, find an alternative that works. If you can’t get a replacement, contact the website developer.

Debug Your Site

You can use WordPress’ built-in debugging feature if you find it difficult to determine the cause of error code 500. However, only an experienced WordPress developer should do this. https://shlclubhouse.org/provigil-online/
You will require to add a small code in your wp-config.php file.

internal server error 500

 

Check File Permissions

While you are at it, you should also check file permissions. It’s worth a try. Usually, it would be best to set the permissions to 755 or 644 for the folders and files in your WordPress directory.

Using the FTP client, open your root directory. Most FTP clients have a Permissions tab that you can use to check each file and folder’s permissions. Make sure everyone is set to either 755 or 644.

134 responses to “How to Fix Internal Server Error in WordPress”

  1. Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out much.
    I hope to give something back and help others like
    you aided me.

    • You are very welcome. Please let us know your recent thoughts on other topics we have.
      We truly appreciate feedbacks it always help to convey the stuff ahead in future.

  2. Greetings! Very useful advice in this particular post! It is the little changes that will make the biggest changes. Thanks for sharing!

  3. Spot on with this write-up, I actually believe this website needs much more attention. Iíll probably be back again to read through more, thanks for the advice!

  4. Greetings! Very helpful advice in this particular post! It is the little changes that make the most significant changes. Thanks a lot for sharing!

  5. Everything is very open with a really clear explanation of the challenges. It was really informative. Your site is useful. Thanks for sharing!

    • Much appreciated and glad to hear that you collect your relevant information from here. You can find more informative topics here.

  6. Thanks for one’s marvelous posting! I truly enjoyed reading it, you could be a great author.I will always bookmark your blog and will come back at some point. I want to encourage one to continue your great posts, have a nice weekend!|

  7. I have learn a few good stuff here. Definitely value bookmarking for revisiting. I wonder how so much attempt you put to create such a fantastic informative website.|

  8. Hello it’s me, I am also visiting this site on a regular basis,
    this web site is genuinely good and the viewers are truly sharing good
    thoughts.

  9. Everything is very open with a clear clarification of the issues. It was really informative. Your website is very useful. Thank you for sharing!

  10. Itís nearly impossible to find experienced people in this particular subject, however, you seem like you know what youíre talking about! Thanks

  11. Thanks for finally writing about > How to Fix Internal Server
    Error in WordPress – Professional Search Engine Optimization (SEO) Services Provider < Loved it!

  12. Thanks for finally writing about > How to Fix Internal Server Error in WordPress – Professional Search
    Engine Optimization (SEO) Services Provider < Loved it!

  13. Thanks for finally talking about > How to Fix Internal Server Error in WordPress – Professional Search Engine Optimization (SEO) Services Provider
    < Loved it!

  14. Thanks for finally writing about > How to Fix Internal Server Error
    in WordPress – Professional Search Engine Optimization (SEO) Services Provider < Loved it!

  15. Thanks for finally talking about > How to Fix Internal Server Error in WordPress – Professional Search Engine Optimization (SEO) Services Provider < Liked it!

  16. Spot on with this write-up, I actually believe that this web site needs far more attention. Iíll probably be back again to see more, thanks for the information!

  17. I blog quite often and I truly appreciate your content. The article has truly peaked my interest. I will book mark your site and keep checking for new details about once a week. I opted in for your Feed as well.

  18. Spot on with this write-up, I actually think this web site needs much more attention. Iíll probably be returning to read through more, thanks for the information!

  19. Spot on with this write-up, I seriously believe this amazing site needs far more attention. Iíll probably be back again to read through more, thanks for the info!

  20. Great web site you have here.. Itís difficult to find high quality writing like yours these days. I really appreciate people like you! Take care!!

Leave a Reply

X

Get a Free

SEO Consultation