---
title: "Installing a Drupal module on Cloud Platform"
date: "2024-02-14T06:18:38+00:00"
summary: "Learn how to install Drupal modules on Cloud Platform with our step-by-step guide. Discover two methods: adding modules locally or using Live Development. Overcome file system limitations and ensure seamless integration."
image:
type: "page"
url: "/acquia-cloud-platform/installing-drupal-module-cloud-platform"
id: "c4ac79c4-495e-4a6f-891e-c13088b3e0d6"
---

While developing or maintaining a Drupal application, you might need to add Drupal contributed modules. If your application is hosted on Cloud Platform, the module directories are part of the code repository, which is [not directly writable](/acquia-cloud-platform/manage-apps/files/symlinks). Therefore, you cannot add a module by using the Update Manager, `drush dl`, or [SFTP](/acquia-cloud-platform/manage-apps/stpf). However, you can commit your changes using a version control system (Git).

There are several different approaches you can take. This topic describes two of them:

*   [Add the module to your local code base, and then commit it](#cloud-install-module-locally)
*   [Install the module on a Cloud Platform environment using Live Development, and then commit it](#cloud-install-module-livedev)

Adding the module locally
-------------------------

To add a module to your local code base, and then commit it:

1.  [Get SSH access](/acquia-cloud-platform/manage-apps/command-line/ssh/getting-started) to your Cloud Platform infrastructure, if you don’t already have it.
2.  Install [Git](/acquia-cloud-platform/develop-apps/repository/git) locally, if you haven’t already done so.
3.  [Check out a local copy of the code repository](/acquia-cloud-platform/develop-apps/repository/checkout).
4.  Change directory into the new local copy of the repository.
5.  Create a feature branch to test the module. In this example, we’ll assume that we’re installing the Foo module, so we’ll call the feature branch `foo`.
    
        git checkout -b foo
    
6.  Change directory into the modules directory of your Drupal version:
    
    **Drupal version**
    
    **Module directory location**
    
    Drupal 7
    
    `/sites/all/modules` or `/sites/all/modules/contrib`
    
    [Current Drupal version](/service-offerings/guide/software-life-cycle#supported-drupal-version)
    
    `/modules` or `/modules/contrib`
    
7.  Download and add the contributed module to the modules directory in the feature branch. For example:
    
        curl http://ftp.drupal.org/files/projects/foo.tar.gz | tar fz
    
8.  [Commit the new module code](/acquia-cloud-platform/develop-apps/repository/github/update) into the Cloud Platform repository.
9.  Deploy the feature branch to your Development or Staging environment for testing.
10.  Using the Drupal admin UI or Drush, enable and configure the new module.

Installing using Live Development
---------------------------------

Note

Live Development mode is not available for environments running on [Cloud Next](/acquia-cloud-platform#cloud-next-benefits) technologies.

Using Live Development mode, you can temporarily make the docroot of your Development environment writable, so you can add modules or make other changes.

Here are the steps for installing a module on a Cloud Platform environment using Live Development, and then committing it. It’s important that you commit your changes to your Cloud Platform code repository before you disable Live Development. Otherwise, the new module won’t be part of your application’s code base. If your application’s database thinks the new module is enabled, but it can’t be found, this can cause havoc.

1.  [Enable Live Development](/acquia-cloud-platform/manage-apps/code/livedev) on your Development environment. Live Development is available for non-Production environments only.
2.  Sign in to your Drupal application and go to the application’s `/admin/modules` page.
3.  Enable the Update Manager, if it isn’t already enabled.
4.  On the `/admin/modules` page, click **Install new module** and [use the Update Manager](https://drupal.org/node/895232) to install the module.
5.  Enable and configure the module, and then test it on your Cloud Platform Development environment.
6.  Connect to your Cloud Platform infrastructure [using SSH](/acquia-cloud-platform/manage-apps/command-line/ssh/getting-started).
7.  Change directory to your application’s live development directory, `/mnt/gfs/[sitename].[env]/livedev`.
8.  [Commit your changes](/acquia-cloud-platform/develop-apps/repository/github/update) to your Cloud Platform code repository.