<p>You can disable plugins by adding their handles to an array <a href="https://docs.craftcms.com/v3/config/config-settings.html#disabledplugins" rel="nofollow noreferrer"><code>disabledPlugins</code></a> in your <code>config/general.php</code> file:</p>

<pre class="lang-php prettyprint-override"><code>&lt;?php
    '*' =&gt; [
        'isSystemLive' =&gt; true,
        'disabledPlugins' =&gt; [
            'redactor',
            'some-plugin',
            ...
        ],
        ...
    ],
</code></pre>

CC BY-SA 4.0
2019-10-07T02:24:20.937Z
Thank you, Mats.  That doesn't seem to have solved my main problem, but it helps to rule things out!  Index.php doesn't seem to get past ```require_once CRAFT_VENDOR_PATH.'/autoload.php';```
kr37
CC BY-SA 4.0
2019-10-07T03:13:09.660Z
Finally, it was a permissions problem accessing the autoload.php.
kr37
CC BY-SA 4.0
2019-10-06T18:52:26.517Z
2019-10-06T18:52:26.517Z
Mats Mikkel Rummelhoff
<p>I'm getting a blank page for both the front end and the CP/admin, and am tyring to figure out why. I changed my hard drive at about the same time as making a bunch of changes to a plugin, so just trying to figure out what I've screwed up.</p>

<p>I already did this: deleted <code>vendor/craftcms</code> followed by</p>

<pre><code>composer clearcache
composer install
</code></pre>

<p>Is there a way to disable plugins from outside the CP?</p>

<plugins>
How to disable plugin when unable to log in?
# How to disable plugin when unable to log in?

(Asked by: username_0 on 2019-10-06)

I'm getting a blank page for both the front end and the CP/admin, and am tyring to figure out why. I changed my hard drive at about the same time as making a bunch of changes to a plugin, so just trying to figure out what I've screwed up.
I already did this: deleted vendor/craftcms followed by
composer clearcache
composer install

Is there a way to disable plugins from outside the CP?

**Tags:** plugins


---

## 1 answers

### Answer by username_1 on 2019-10-06. Score: 4 | Accepted answer

You can disable plugins by adding their handles to an array disabledPlugins in your config/general.php file:
 [
        'isSystemLive' => true,
        'disabledPlugins' => [
            'redactor',
            'some-plugin',
            ...
        ],
        ...
    ],

> **Comments:**
> **username_0**: Thank you, Mats.  That doesn't seem to have solved my main problem, but it helps to rule things out!  Index.php doesn't seem to get past ```require_once CRAFT_VENDOR_PATH.'/autoload.php';```  
> **username_0**: Finally, it was a permissions problem accessing the autoload.php.  

---

