WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
  • Deals
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Fix the Internal Server Error in WordPress

How to Fix the Internal Server Error in WordPress

Last updated on November 25th, 2014 by Editorial Staff
1k Shares
442
466
79
24
Special WordPress Hosting offer for WPBeginner Readers
How to Fix the Internal Server Error in WordPress

If you have been surfing the web for more than a year, then you probably have seen the HTTP 500 Internal Server Error at least a few times. Internal Server Error is one of the common WordPress errors that can put a WordPress beginner in panic mode. Panic is the worst reaction you can have. Take a deep breath and know that others before you have had this issue as well. We have fixed errors like the internal server error, error establishing database connection, white screen of death, and others many times for our users. We can assure you that they are all fixable. It just requires a little bit of patience. In this article, we will show you how to fix the internal server error in WordPress by compiling a list of all possible solutions in one place.

Internal Server Error in WordPress

Why do you get Internal Server Error in WordPress?

Internal server error is not specific to WordPress, and it can happen with anything else running on your server as well. Due to the generic nature of this error, it does not tell the developer anything. Asking how to fix an internal server error is like asking your doctor how to fix the pain without telling them where the pain is. Having that said, internal server error in WordPress is often caused by plugin and/or theme functions. Other possible causes of internal server error in WordPress that we know of are: corrupted .htaccess file and PHP memory limit. We have also heard internal server error only showing up when you are trying to access the administrator area while the rest of the site works fine.

Lets take a look at how to go about troubleshooting the internal server error in WordPress.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Checking for Corrupt .htaccess File

The first thing you should do when troubleshooting the internal server error in WordPress is check for the corrupted .htaccess file. You can do so by renaming your main .htaccess file to something like .htaccess_old. To rename the .htaccess file, you will need to login to your site using the FTP. Once you are in, the .htaccess file will be located in the same directory where you will see folders like wp-content, wp-admin, and wp-includes.

Once you have renamed the .htaccess file, try loading your site to see if this solved the problem. If it did, then give yourself a pat on the back because you fixed the internal server error. Before you move on with other things, make sure that you go to Settings » Permalinks and click the save button. This will generate a new .htaccess file for you with proper rewrite rules to ensure that your post pages do not return a 404.

If checking for the corrupt .htaccess file solution did not work for you, then you need to continue reading this article.

Increasing the PHP Memory Limit

Sometimes this error can happen if you are exhausting your PHP memory limit. Use our tutorial on how to increase PHP memory limit in WordPress to fix that.

If you are seeing the internal server error only when you try to login to your WordPress admin or uploading an image in your wp-admin, then you should increase the memory limit by following these steps:

  1. Create a blank text file called php.ini
  2. Paste this code in there: memory=64MB
  3. Save the file
  4. Upload it into your /wp-admin/ folder using FTP

Several users have said that doing the above fixed the admin side problem for them.

If increasing the memory limit fix the problem for you, then you have fixed the problem temporarily. The reason why we say this is because there has to be something that is exhausting your memory limit. This could be a poorly coded plugin or even a theme function. We strongly recommend that you ask your WordPress web hosting company to look into the server logs to help you find the exact diagnostics.

If increasing the PHP memory limit did not fix the issue for you, then you are in for some hard-core trouble shooting.

Deactivate all Plugins

If none of the above solutions worked for you, then this error is most likely being caused by a specific plugin. It is also possible that it is a combination of plugins that are not playing nice with each other. Sadly, there is no easy way to find this out. You have to deactivate all WordPress plugins at once.

Follow the following tutorial on how to deactivate all WordPress plugins without WP-Admin.

If disabling all plugins fixed the error, then you know it is one of the plugins that is causing the error. Simply go through and reactivate one plugin at a time until you find the one that caused the issue. Get rid of that plugin, and report the error to the plugin author.

Re-uploading Core Files

If the plugin option didn’t fix the internal server error, then it is worth re-uploading the wp-admin and wp-includes folder from a fresh WordPress install. This will NOT remove any of your information, but it may solve the problem in case any file was corrupted.

Ask your Hosting Provider

If nothing works, then you need to get in touch with your hosting provider. By looking at the server logs, they should be able to get to the bottom of things.

These are all the possible solutions that may fix the internal server error problem in WordPress. Did any of the above solutions fixed the problem for you? If so, then please let us know in the comments. Did you encounter the internal server error issue in the past? how did you fix it? If you know of a fix that is not listed in the article above, then please contribute in the comments below. We will make sure to keep the article up to date with any new advice from the users.

1k Shares
442
466
79
24
Popular on WPBeginner Right Now!
  • Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Why Build Your Email List Today

    Revealed: Why Building Your Email List is so Important Today!

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

The Ultimate WordPress Toolkit

432 Comments

Leave a Reply
  1. Kris says:
    Jul 16, 2017 at 9:40 pm

    It’s working thank you :)

    I migrated to a VPS.
    I got an issue when I want to change the setting on any plugins, end up with error 500. But if I checked at htop, the server resources is not reach the limit, I’m using 4GB VPS 2core Linode, so it’s more that enough for small site like mine.

    The php.ini trick works well, now I never got any error 500 anymore :)

    Reply
  2. jaiho says:
    Jul 16, 2017 at 12:38 pm

    hi, thank you for your useful tips, this is the best site ever

    Reply
  3. Madusanka says:
    Jul 8, 2017 at 1:26 pm

    It works for my site.

    Reply
  4. Kim says:
    Jul 4, 2017 at 12:09 pm

    Thanks. It was a corrupted .htaccess file.

    Reply
  5. Friedemann Wetter says:
    Jul 3, 2017 at 9:42 am

    nothing but “Re-uploading Core Files” solved it!
    I used a copy of a similar page that had no problems!
    Thanks!

    Reply
  6. Jeffrey Hayes says:
    Jun 19, 2017 at 12:42 am

    Your article did help me solve the issue. The problem seem to start when I tried to add new pages and/or post. After reading your article I first went into my file manager in my hosting control panel and tired to change the name of htaccess file but file manager would not allow me to do this so I went back into wordpress and deactivated ALL my plugins and then I could add pages and post with no error messages so I then reactivated one plugin at a time and each would add post/page until I found the plugin that was causing the problem so WP is running great again thanks to you, I am very new to WP as I always develop my websites in Dreamweaver.

    Reply
    • WPBeginner Support says:
      Jun 20, 2017 at 7:59 pm

      Hi Jaffery,

      Glad to hear that you find WPBeginner helpful. :) Don’t forget to follow us on Facebook for more WordPress tips and tutorials.

      Reply
  7. Diego says:
    Jun 8, 2017 at 5:03 pm

    I was having trouble with this and i tried every solution here.
    Nothing worked , then i looked in the folder where wp-config , wp-mail is and i found a file named erro_log.
    I looked and found two of my pages inside the theme was giving error i just upload again via ftp the files and Boom!
    All working again.

    Reply
    • Sophie says:
      Jul 12, 2017 at 11:03 am

      Thanks for posting this. Your reply solved my problem as well. I had forgotten a ‘,’ in php file.

      Thank you for saving me the time of deactivating all of my plugins!

      Reply
  8. Dave Sumner says:
    Jun 4, 2017 at 6:10 pm

    inre: Re-uploading the core files includes/admin… am I overwriting the existing files or do I have do something first like re-name the old files before ftp’ing the new core files in. I’ve searched everywhere, but I don’t think I’ve seen an answer stated definitively on that.

    Thanks.

    Reply
  9. Rico Bravo says:
    May 28, 2017 at 9:31 pm

    I went through every step and I couldn’t fix the error. So, I deleted the child theme and re-set the permalinks to Post name – It worked. Thanks for the tutorial…

    Reply
  10. Aseem Rastogi says:
    May 16, 2017 at 5:56 pm

    Deactivating all plugins worked for me..
    thank you

    Reply
  11. Fredy pandia says:
    May 4, 2017 at 9:55 pm

    thanks wpbeginner
    you really made my day
    changging .httaccess to the basic help my site up and run again

    basic wordpress .httacess
    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    Reply
  12. John says:
    May 4, 2017 at 8:39 pm

    I renamed the Plugins folder to Plugins.de
    i logged into my site, it listed all my plugins but said they were not present.
    I logged out of my site.
    I then renamed the folder back to Plugins. I logged into my site, all the plugins were there but not activated. i activated the plugins 1 at a time until i found the corrupted plugin. i then deleted that plugin, reloaded it, activated it and now all works perfectly.

    Reply
  13. Joshua lynch says:
    May 4, 2017 at 4:07 pm

    Hello, I am new to a company and they had a third party create and run their wordpress, now ive somehow accidentally managed to change the URL of the site to something else rather that what was purchased and added to the business website using the url from a host, I think they use Fast host, but I get a 500 internal error now and I cannot log into the account and when you go to the web page it come up without a theme or anythning. Please Advise as I need this sitem up and running again asap!

    Reply
  14. Frank says:
    May 2, 2017 at 7:23 pm

    You saved my life! Thanks.

    Reply
  15. Daniel says:
    Apr 30, 2017 at 3:57 pm

    I renamed my htacces and it worked but my problem is it toke back the Maximum upload file size which increased before to its default plz help

    Reply
  16. David says:
    Apr 26, 2017 at 8:22 pm

    I had an issue where none of these things worked for me. For some reason, whenever I clicked “save” in the general settings or when clicking “save” in the permalinks settings, it would send me into a 500 server error loop. The only way to fix this was to upload a new “clean” version of an .htaccess file I had from another site running a similar setup. Same host, etc. Clicking save would trigger a change in the .htaccess file and basically corrupt it. In speaking with Bluehost tech support (like the 7th or 8th time) I finally found a stud tech support and he addressed the issue by disabling something called the “endurance cache plugin.” If you are on Bluehost and face the same issue, have your support try this. It could save you both hours!

    Reply
  17. João Nunes says:
    Apr 25, 2017 at 5:46 am

    Thanks a lot, it solved my problem.

    Reply
  18. Will says:
    Apr 18, 2017 at 8:08 pm

    Deactivating plugins and then Activating them solved it for me thanks. One tip for you video is to slow down on each item I had to pause and rewind like 3 times lol ;)

    Reply
  19. cr_mck says:
    Apr 18, 2017 at 2:37 pm

    Thank you so much for posting this help tutorial. It was a corrupt plugin that caused the problem. I changed the plugin folder name and managed to get back in and turn them back on one-by-one.

    Reply
  20. Jose Cabral says:
    Mar 9, 2017 at 12:08 pm

    Re-uploading Core Files solved my issues

    Reply
  21. Maurice says:
    Mar 8, 2017 at 3:51 pm

    I was updating a plugin and then I got the 500 internal server error. I watched the video above and I am a internet technology moron. In the video the author is on a screen I have no idea how to get to or what it even is. Please help.

    Maurice

    Reply
  22. Kat says:
    Mar 2, 2017 at 3:42 pm

    Useful but since I’m such a newbie and still learning WordPress, I am stuck. I can’t even seem to log in because of the 500 internal server error. Do you know what I should do?

    Reply
  23. Shuaib says:
    Feb 22, 2017 at 10:46 am

    you save my life

    Reply
  24. Carlos says:
    Feb 17, 2017 at 3:38 am

    Thanks a lot for this. It helped me solve the issue.

    Reply
  25. Neneh says:
    Feb 15, 2017 at 12:49 pm

    Deactivating the plugins worked for me, thanks

    Reply
  26. Atin says:
    Feb 4, 2017 at 2:12 am

    i tried all the above solutions but none worked correctly .

    Here is my situtation;
    1. frontend not working (I need solution for this)
    2. backend login works fine

    Reply
    • James says:
      Feb 10, 2017 at 4:13 am

      Same problem here. Clean WP installation works fine. Restoring DB and files from local server to hosting – front page’s blank screen, admin panel is available.

      Have you already solved your problem, Atin?

      Reply
      • Kate says:
        Feb 21, 2017 at 3:38 pm

        Have you tried resaving the Permalink structure under Settings? This can help restore a corrupted .htaccess file, which I’ve found causes a lot of those broken-front-end, working-back-end problems.

        Reply
    • Charlotte says:
      Jul 6, 2017 at 7:11 am

      I’m the opposite, front end working, haven’t even been able to get back end working at all since making it live through wp-admin! Tried everything!!

      Reply
  27. Ang says:
    Feb 2, 2017 at 12:09 pm

    GREAT! Thanks x all, your save my day! :)

    Reply
  28. Tulay says:
    Feb 1, 2017 at 10:59 am

    Thanks! you re the hero of the day and saved me! have an awesome day just for that!

    Reply
  29. Mac says:
    Jan 20, 2017 at 10:36 pm

    Thanks a lot it works for me. You save my day! Cheers!

    Reply
  30. Lindsay says:
    Jan 19, 2017 at 11:35 am

    Thank you for this article! It helped me resolve issues with my site quickly rather than having to rely on tech support that takes days!

    Reply
  31. SJ says:
    Jan 17, 2017 at 11:00 am

    Thank you,

    In my case, I found the theme is causing the error. After deleting, it works.

    How to fix this, This is a premium theme which can’t be downloaded from wordpress directly.

    This theme is perfectly working on my another site which is controlled by vestacp.

    But, This server is managed by CWP. So, Centos web panel security may be the reason for this http 500 error??

    Please help

    Thanks

    Reply
  32. Celian says:
    Jan 17, 2017 at 3:47 am

    Thanks you very much for theses advices, it worked perfectly !

    Reply
  33. Larry Halpern says:
    Jan 11, 2017 at 4:54 pm

    After updating WordPress to 4.7.2, I’m getting the 404 error (“The requested URL / was not found on this server”). My host said to go to the settings tab and saved them – no luck. I’ve deactivated the plug-ins – no luck. This hasn’t happened in 7 years. Any thoughts?

    Reply
    • WPBeginner Support says:
      Jan 12, 2017 at 1:24 am

      Hi Larry,

      Please follow the steps in WordPress troubleshooting guide.

      Reply
  34. Kris says:
    Jan 11, 2017 at 4:36 am

    Just to say thanks for this information, concise and fortunately for me the first step fixed it!

    Reply
  35. Andrea says:
    Jan 7, 2017 at 5:51 pm

    Ignore my last comment. I figured out what I did. I now just am unsure on how to figure out which plugin it was that messed me up. lol

    Reply
  36. Andrea says:
    Jan 7, 2017 at 5:46 pm

    I just followed these steps as I had an Error 500. I can now get back into WordPress admin (thank you), but none of my plug-ins are back. I could add them all again, but I have NO IDEA what I had. Any advice on how to get them back? This happened once before and it all came back fine when I deactivated. I’m a complete novice, so I’m guessing I hit something wrong. Thanks.

    Reply
  37. Mohak M says:
    Jan 4, 2017 at 3:15 am

    I encountered this error while restoring via a backupbuddy zip file. I uploaded the zip and importbuddy.php script in the root directory via FileZilla and ran the script. However, during the process, i got this error. Any idea how to fix this issue?
    Thanks.

    Reply
  38. JPS Nagi says:
    Dec 30, 2016 at 2:32 pm

    Thank you ! Thank you ! Thank you ! Thank you !

    My hosting company was not helpful. I am just a simple guy who was happy with WordPress. The tech support on the phone was annoyed, and rude.
    Finally got this to work … it was the htaccess thing.

    I need to find new hosting company … any recommendations ?

    Reply
    • WPBeginner Support says:
      Dec 31, 2016 at 12:00 am

      Please take a look at our guide on how to choose the best WordPress hosting.

      Reply
  39. Med Toledo says:
    Dec 26, 2016 at 5:44 pm

    Thanks a lot for this TIP, I did as suggested and wordked as a charm. I renamed the .htacces file, just wondering if that file is needed or the server generates a new one?

    Reply
    • WPBeginner Support says:
      Dec 27, 2016 at 1:51 am

      WordPress regenerates it automatically if it doesn’t find one. You can also regenerate it by visit Settings » Permalinks page in your WordPress admin area. Simply click on the save changes button without making any changes.

      Reply
  40. Jimy Lincoln says:
    Dec 25, 2016 at 10:52 pm

    Thank you very much for this video. It helped when my hosting company was not available.

    Reply
  41. Phoebe says:
    Dec 19, 2016 at 9:54 pm

    I am getting the HTTP 500 error when I try to access the admin site. The site itself seems to be working as normal though. This has happened after I updated to WP 4.7. Any suggestions?

    Reply
    • Scott says:
      Dec 27, 2016 at 3:35 pm

      I just had this exact issue and here is how I solved it.

      1. Rename the plugin folder via ftp. i.e. plugin-test.
      2. Visit the website’s admin page
      2.a. When prompted, update the database
      3. Make sure you can go in and out of the sites admin page like normal.
      4. Rename the plugin folder back to original name.

      That fixed the issue for me.

      Reply
  42. Manjunath says:
    Dec 12, 2016 at 4:30 am

    Thanks! Its unbelievable post about fixing internal server error. I was frustrated about this error and finally fixed it by this post and i like all The posts written here.

    Reply
  43. Yulia says:
    Dec 11, 2016 at 11:52 am

    Thank you so much for such a simple and useful explanation!

    Reply
  44. Melissa says:
    Dec 8, 2016 at 9:04 am

    I am getting the http error 500 message when I try to log into the admin site and am unable to access it. The site itself works fine though. I was upgrading the site to the latest version of WP. Can anyone help?

    Reply
  45. Suzanne Turner says:
    Dec 7, 2016 at 6:39 pm

    I’m unable to access the dashboard for my site so I don’t know how I can perform the above checks.

    Reply
    • WPBeginner Support says:
      Dec 7, 2016 at 7:59 pm

      Hi Suzanne,

      Please see our guide on what to do when you are locked out of WordPress admin area.

      Reply
  46. rachel says:
    Nov 25, 2016 at 10:30 am

    Life saver thank you. Mine was caused by a plugin which I deleted from the hosting control panel and all was well again.

    Reply
  47. S.S. says:
    Nov 15, 2016 at 9:19 pm

    Thanks so much for this article (and for all your great articles!) As a new wordpress developer, you just saved me hours of stressing!!

    Reply
  48. Ian Rhodes says:
    Nov 4, 2016 at 12:58 pm

    I run several sites and have run into a strange problem. I can access one site, but not the admin. On another I can’t access the site or admin. Another site is unaffected.For the problem sites I get error 500.

    When I spoke to my service provider, the weird thing is that the CAN access the login screen that I can’t.

    I’ve tried your suggestions to no avail and am still unable to get to my dashboard :(

    Reply
    • WPBeginner Support says:
      Nov 5, 2016 at 12:09 am

      Try our step by step WordPress troubleshooting guide to figure out what’s causing this issue.

      Reply
      • nanda says:
        Apr 28, 2017 at 4:19 am

        i was add zipfile theme from my pc and insall……after loading its shows internal error …..please help me thank you

        Reply
  49. Ugyen Zangmo says:
    Nov 4, 2016 at 1:21 am

    It fixed my problem. Thank you so much

    Reply
  50. Dan says:
    Oct 31, 2016 at 1:14 pm

    This would be helpful if I could get into the site to begin with, but that’s the problem I’m having. Unable to log in and getting a INTERNAL SERVER ERROR 500

    Reply
« 1 … 6 7 8

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 600,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
Soliloquy Logo
Soliloquy
The Best Responsive WordPress Slider Plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 25 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Which is the Best WordPress Photo Gallery Plugin? (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2017)
    • Which is the Best WordPress Slider? Performance + Quality Compared
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • 5 Best VPN Services for WordPress Users (Compared)
    • HostGator Review - An Honest Look at Speed & Uptime (2017)
    • SiteGround Reviews from 1032 Users & Our Experts (2017)
    • Bluehost Review from Real Users + Performance Stats (2017)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Start a Podcast with WordPress (Step by Step)
    • How to Choose the Best Domain Name (8 Tips and Tools)
    • How to Setup a Professional Email Address with Google Apps and Gmail
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2017 – Step by Step Guide
Deals & Coupons (view all)
Aweber
AWeber Coupon
Get 100% off for your first month with AWeber. Start your first month for free.
JustHost
JustHost Coupon
Get hosting for $3.95 / month and a free domain registration for life. Can't get any better.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
Our Sites
  • OptinMonster
  • Envira Gallery
  • SoliloquyWP
  • WPForms
  • MonsterInsights
  • List25

Copyright © 2009 - 2017 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

WordPress hosting by HostGator | WordPress CDN by MaxCDN | WordPress Security by Sucuri.