---
title: "Disabling modules that block sites on Acquia Cloud"
date: "2025-02-05T23:30:40+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/92801-disabling-modules-block-sites-acquia-cloud"
id: "cc98c156-ae0e-4971-be1d-6ad4fdbdeea6"
---

Issue
-----

Drupal fails to run on Acquia Cloud.

Resolution
----------

A common reason is that a custom Drupal module that won't run on Acquia Cloud. If you know which module is causing the problem, you can disable the module using [Drush](https://www.drupal.org/project/drush) or directly in MySQL.

### Disable a module via Drush

Important

Create a [database backup](/node/56287) prior to any significant change to a website, including disabling or enabling modules.  

1.  [Connect to your server using SSH](https://docs.acquia.com/cloud-platform/manage/ssh/enable/).
2.  Run one of the following Drush command to disable the module:  
    Drupal 7:
    
        drush @[site].[env] pm-disable [module]
    
    Drupal 8/9:
    
        drush @[site].[env] pm-uninstall [module]
    
    Where `[site]` is your Acquia Cloud site name, `[env]` is the environment that you're updating (example values are dev, test, and prod), and `[module]` is the name of module that you want to disable.
    

### Disable a module via MySQL

Alternatively, you can disable the module manually in the database on your Acquia Cloud server.

Important

The MySQL command should only be used as a last resort, and [after taking a database backup](/node/56287). It will not disable any modules that are dependent on the module you're attempting to disable, causing more errors.

1.  [Connect to your server using SSH](https://docs.acquia.com/cloud-platform/manage/ssh/enable/).
2.  Open a [connection to your database](/node/56337) using the following command:
    
        drush @[site].[env] ah-sql-cli
    
    Where `[site]` is your Acquia Cloud site name, and `[env]` is the environment that you're updating (example values are dev, test, and prod).
    
3.  Disable the module with this SQL command:
    
        UPDATE system SET status='0' WHERE name='[module]';
    
    Where `[module]` is the name of module that you want to disable.