WordPress

How to Disable a Problem Plugin Without Access to wp-admin

Sometimes a plugin update or a new plugin breaks your site so badly that you cannot even reach the WordPress dashboard to turn it off. It feels like a catch-22, but there is a reliable way out: disable the plugin from behind the scenes, using tools in cPanel.

Method 1: Rename the plugin folder (easiest)

WordPress automatically deactivates any plugin whose folder it cannot find, so renaming the folder switches it off.

  1. Log in to cPanel and open Files → File Manager.
  2. Go to public_html/wp-content/plugins/.
  3. Find the folder of the plugin causing trouble.
  4. Rename it — for example add -off to the end.
  5. Reload your site. The plugin is now deactivated and you should regain access.

Not sure which plugin is the culprit? Rename the whole plugins folder to disable them all, log in, then rename it back and reactivate plugins one at a time to find the offender.

Method 2: Deactivate via phpMyAdmin

If you prefer the database route:

  1. Open phpMyAdmin from cPanel and select your WordPress database.
  2. Open the wp_options table and find the active_plugins row.
  3. Editing this safely is fiddly, so back up first — the folder-rename method above is usually easier and safer.

After you regain access

Once back in, update or replace the problem plugin, or find an alternative. If the site still misbehaves, see fixing the 500 internal server error or the white screen of death.

Frequently asked questions

Will renaming the folder delete my plugin settings?

No. Deactivating this way keeps the plugin’s data. When you rename the folder back, its settings are still there.

How do I identify which plugin broke my site?

Disable all plugins, confirm the site works, then reactivate them one by one until the problem returns — that last one is the cause.

The site is still broken with all plugins off.

Then it may be your theme or something else. Switch to a default theme, and check our WordPress troubleshooting guides or contact support.

Was this article helpful?