Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Deactivate All Plugins When Not Able to Access WP-Admin

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you need to deactivate all WordPress plugins, but you are unable to access the WordPress admin area?

During WordPress troubleshooting, you will be often advised to deactivate all plugins and then reactivate them one by one. But what if you can’t access wp-admin to deactivate them?

In this article, we will show you how to easily deactivate all WordPress plugins when you are not able to access the wp-admin area.

Deactivating all WordPress plugins without accessing admin area

Video Tutorial

Subscribe to WPBeginner

If you prefer written instructions or want to move at your own pace, then continue reading the instructions below.

There are two commonly used methods to deactivate plugins without accessing the admin area of your WordPress website. You can choose the method that looks easier:

Method 1: Deactivate All WordPress Plugins Using FTP

For this method, you will need to either use an FTP client or the file manager app in your WordPress hosting control panel.

If you haven’t used FTP before, then you may want to see our guide on how to use FTP to upload files to WordPress.

First, you need to connect to your website using an FTP client or the file manager in cPanel. Once connected, you need to navigate to the /wp-content/ folder.

Inside the wp-content folder, you will see a folder called plugins. This is where WordPress stores all plugins installed on your website.

Rename plugins folder

You need to right-click the plugins folder and select ‘Rename’.

Next, change the name of the folder to anything that you like. In our example, we will call it plugins.deactivate.

Plugin folder renamed to deactivate all plugins

Once you do this, all of your plugins will be deactivated.

That’s because WordPress looks for a folder called ‘plugins’ to load the plugin files. When it does not find the folder, it automatically disables the active plugins in the database.

Usually, this method is used when you are locked out of your admin area. If the issue was with your plugins, then you should be able to log in to your WordPress admin area.

If you visit the Plugins » Installed Plugins page inside the WordPress admin area, then you will see notifications for all the plugins that have been deactivated.

WordPress plugins deactivated

You will also notice that all your plugins have disappeared now. Don’t worry; they are all safe, and you can easily restore them.

Simply switch back to your FTP client and go to the /wp-content/ folder. From here, you need to rename the plugins.deactivate folder back to plugins.

Now, you can go back to the Plugins » Installed Plugins page inside the WordPress admin area and activate one plugin at a time until your site breaks again.

At this point, you will know exactly which plugin caused the issue. You can then delete that plugin’s folder from your site using FTP or ask the plugin author for support.

Method 2: Deactivate All Plugins Using phpMyAdmin

The FTP method is definitely easier, in our opinion. However, you can also deactivate all WordPress plugins using phpMyAdmin.

Important: Before you do anything, please make a complete database backup. This will come in handy if anything goes wrong.

Next, you will need to log in to your web hosting dashboard. In this example, we are showing you a cPanel dashboard. Your hosting account’s dashboard may look different.

You will need to click the ‘phpMyAdmin’ icon under the Databases section.

phpMyAdmin in cPanel

This will launch phpMyAdmin in a new browser window.

You will need to select your WordPress database if it is not already selected. After that, you will be able to see WordPress database tables.

WordPress database tables

As you can see, all tables in the database have wp_ prefix before the table name. Your tables may have a different database prefix.

You need to click on the wp_options table. Inside the wp_options table, you will see rows of different options. Find the option ‘active_plugins’ and then click on the ‘Edit’ link next to it.

Editing active plugins option

On the next screen, you will need to change the option_value field to a:0:{}.

Then, click the ‘Go’ button to save your changes.

Reset active plugins

You have successfully deactivated all WordPress plugins using phpMyAdmin. If a plugin was stopping you from accessing WordPress admin, then you should be able to log in now.

Expert Guides on WordPress Plugins

Now that you know how to deactivate plugins when you can’t access wp-admin, you might like to see some other guides related to WordPress plugins:

We hope that this article helped you deactivate all plugins in WordPress. You may also want to learn how to set up Google Analytics goals or check out our list of the best WordPress backup plugins to keep your WordPress data safe.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

338 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Susan says

    Hi! I reset the name of the plugin file but still couldn’t login. Anyone else have the same problem or have some advice?

    Thanks!

  3. Katy says

    Thank you, totally saved me. I was doing the “breathe, don’t panic” thing already thank goodness, which is how I found this article. Thanks again :)

  4. morgan says

    Okay, so I’ve done this and now all my plugins are completely gone on my admin page. It keeps failing when i try to install anything.
    I still see all my plugins on filezilla but they arent on my website.

    Someone please help! I’m freaking out.

  5. Jeremy Weston says

    Something killed two of my sites. I ssh’d in and renamed the plugins folder, went into my WP admin, logged in, went to the plugins page. Then all plugins were disabled via the admin panel. My site was working again!

    Then I renamed the plugins folder back to the original name and updated and reactivated my plugins. Something had caused my site to crash. Unfortunately, I’ll have to keep an eye open for this. Uptime monitors help!

    Thanks for this writeup wpbeginner!

  6. Collins Uzamere says

    Thnak you very much .God bless the author of this article it helped me solve a problem that gave me sleepless night

  7. Courtney says

    Thank you! Thank you! Thank you!
    This help was a Christmas Miracle!
    I really appreciate you creating this site.

  8. Gabriella Bourdon says

    On my wordpress site, I got “the white screen of death” with the message “Warning: Cannot modify header information – headers already sent by (output started at …)

    So we tried deactivating the plugins and it still doesn’t work-we still can’t get inside the admin console. We had issues with Google Adwords, and deleted those plugins, and now we actually do get ads…Not crystal on what’s going on? Any help would be much appreciated.

    • George M says

      Another cause is if your php memory limit is too low. Please make sure your memory limit in php is set to at least 128M or 256M.

      The other common cause is with a poorly coded theme. If you just installed a theme and this appears, you can re-enable the default theme by logging into PHPmyadmin, selecting your database, and changing the following values from wp_options table to a default theme that is present (twentyeleven, twentytwelve, twentythirteen, twentyfourteen, etc). Make sure this is a theme you actually have, and you can check your themes in the wp-content/themes directory. The values that need changes are:
      template
      stylesheet
      current_theme

  9. Phoebe says

    How do you reactivate the plugins if they are not the issue and still cannot access your admin site?

    • WPBeginner Support says

      No, but you can activate your installed plugins by visiting the plugins page in your WordPress admin area. However, if a plugin was causing an issue on your website, then reactivating it will trigger the same issue again. This is how you can find out which plugin is causing the issue and find an alternative.

      Admin

  10. Claire says

    Hi, I am working on a locally hosted site running Xampp.
    I am getting “Robot test error: I suggest a new strategy, R2, let the Wookie win.”, when I try to login to my locally hosted site on wordpress. I read a few articles and went to my phpmyadmin page, and clicked on the database I am using, selected “wp_options”, but I cannot find the “active_plugins”.
    Does anyone know another way around getting rid of this error?So I can log back into my site.

    • Claire says

      Managed to find a solution :-) went to my xampp folder, htdocs, then the name of the site I am creating. Then wp_content, then plugins, and deleted the folder containing the reCaptcha plugin, as this was giving me the “Robot test error: I suggest a new strategy, R2, let the Wookie win.”error.
      Then could log back in with no problem :-)

  11. john smith says

    This is a great page. FTP solution worked like a dream to fix my white screen of death. Note to self – always update all plugins before wordpress core…

  12. Dirk says

    Thanks for putting the different options on a page.
    Makes it a clear list to go by checking the problem. What is not in the list but worked for me, is temporarily disabling the .htaccess file by renaming it and so I could working from there.

    • Steve says

      Thank you so much for this tip. I was going nuts because my wp-total-cache went haywire and your post helped me figure out what was going on. Thank you for taking the time to invest.

  13. maz says

    Thanks got me out of a jam need some help now to remove a dodgy plugin W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove /home/content/16/8282516/html/notsealed/wp-content/db.php

    IS it safe to remove this db.php file? Crashes if I leave the plugin in the folder, crashes if I install, crashes if uninstall. Fielzilla helped to rename but WordPress is a mess keeps coming up with the error above thanks

  14. Bona says

    Mine is a different case, after disabling all the plugins by deleting the codes, the plugins and even widgets stopped showing by I was still unable to login to my admin page. Since the plugins are not the cause, I pasted the codes back and the plugins and widgets didn’t show up again! What happened?

  15. Tristan Morgan-Buck says

    THANK YOU GUYS SO MUCH; I was trying to access my website for 3 days after I installed login_form_recaptcha, and I tried everything, but you guys really saved my a**! Thanks a bunch!!!

  16. simon says

    Thanks, worked a treat.
    Much easier than I thought it would be.

    I knew which plugin was the problem so went in with FTP and renamed the individual plugin module folder – logged back into WP and was able to delete the plugin from within wp-admin/plugins.

  17. MBHayes says

    OH BOY… this just saved my tail end best I can tell… 6/15/16… Adminimize plugin upgrade crashed / blocked access to my admin panel.
    THANK YOU SO SO MUCH this handy reference still lives on the web!!!

    • MBHayes says

      … my case continues and is not closed after all …
      When I renamed plugins and then soft restarted apache my admin panel was good… however, once I renamed plugins back to plugins from deactivate.plugins… AGAIN the admin panel would fire on IE but not let you in and would not fire at all on Firefox!
      Oh boy… more CSI time……………………………

      • MBHayes says

        Case Closed… before we BASH adminimize which has been a faithful plugin… let me say I’ve managed to reach the admin panel and reactivated adminimize and everything is still running.

        My case was somewhat varied to this post… in my case my site was a vm running on ubuntu… I didn’t have access over the normal channels due to a network move killing off my webmin and winscp access… so while I used the same principals here I had to actually drill down by logging into the unbuntu server –> cd /var/www/wp-content/plugins. At first I RENAMED the plugins directory — it failed I guess cause while I logged in I logged back out then renamed the directory. Anyway, I continued to toy around and went back from within the plugins directory and renamed about 5 plugins (mv deact.plugin1… deact.plugin2… etc…. fired the wp-admin and we’re good! Reactivated about 3 of the 5 so far and it hasn’t crashed back out yet. Still testing… in summary want to emphasize that I can’t for sure at the moment say I lost the admin panel on the adminimize plug-in… but one of the 5 for sure caused issue. Anyway, I’m back slowly reactivating the rest!

  18. Ruhi says

    Hiee… when I try to load my site it says this page isn’t working also it says yoursite.com can’t handle this record and moreover am unable to acess my wordpress dashboard when I try entering the wp-admin it show blank white page please help!!

  19. pankaj says

    hii,
    i am getting

    PHP Fatal error: Cannot redeclare is_comments_popup() (previously declared in /home/rateahqx/public_html/wp-includes/query.php:309) in /home/rateahqx/public_html/wp-includes/deprecated.php on line 3713
    i tried everything but my site is still not starting pls help me.
    and i think this problem started after the wordpress update.

    • WPBeginner Support says

      It is possible that a WordPress update was stopped before completion. Try downloading a fresh copy of WordPress, unzip it on your computer and then upload them back to your server using FTP. This will overwrite WordPress core files.

      Admin

  20. Ronald says

    thank you for this blog. it really helps but what i did is delete some plugins. Thank you once again my site brings back to life :)

  21. Hanne Schroedter says

    Yupp, this was perfect, and I could deactivate Jetpack who was udated later today.
    Thank you! Awesome.

    • WPBeginner Support says

      You can visit it in your browser, like this:

      example.com/wp-content

      Replace example.com with the domain of the website.

      However, wp-content file has a blank index.php file in it. So you will only be able to see a white screen.

      If you know the full URL to a file, then you can view it in your browser like this:

      example.com/wp-content/path/to/file.jpg

      To navigate wp-content as an admin you need to use an FTP client or File Manager in cPanel.

      Admin

  22. Lesly Federici says

    Hello
    THANK YOU for this article. for 2 days my site has been down due to a plugin and you’d think my theme/hosting support would tell me what to do. Nope. So I had to research it and this did it!

Leave A 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.