How to install a Drupal 8 module

You can add new functionality to Drupal by downloading and enabling modules from the module archive at Drupal.org.

Adding a module to your codebase

Before you can use a module with your website, you must first add the module to your website's codebase.

For procedures that you can use to set up and use Composer locally with your Acquia Cloud-hosted websites, see Using Composer with Drupal 8 sites. The Drupal community also offers support for using Composer to install Drupal packages on Drupal.org.

Installing a module

After you have added a module to your website's codebase, you can install the module using either the Drupal interface or a Drush command.

Installing using the Drupal interface

To install a module using the Drupal user interface, complete the following steps:

  1. Sign in to your website as an administrator.
  2. Go to the Modules page by using one of the following methods:
    • In the administrative menu, click Extend.
    • In your browser's address bar, go to http://[your_site]/admin/modules (where [your_site] is your website's URL).
  3. In the module list, find the module that you want to install, and then select its check box.
  4. Scroll to the bottom of the webpage, and then click Install.

Installing using Drush

For more advanced users who are familiar with the command line, you can also install and enable modules using a Drush command.

To install a module using Drush, complete the following steps:

  1. Open a command prompt to access your website's code.
  2. Using the cd command, navigate to your website's docroot.
  3. Run the following command:

    drush en module_name

    where module_name is the project name from Drupal.org. For example, the project name for the Acquia Connector module is acquia_connector, from https://www.drupal.org/project/acquia_connector.

Next steps

After you have installed a module on your website, you will probably need to configure the module's settings or make changes to website user permissions. For additional information regarding these next steps, be sure to review the documentation provided either with your module or on your module's Drupal.org project page.

Contact supportStill need assistance? Contact Acquia Support