How to Install a Module in Drupal 8

Drupal is among the most widely-used content management systems on the internet. It is especially popular among web personnel of large-scale enterprise projects. In this tutorial, we will teach you two ways to install a module in Drupal 8: via the dashboard and via cPanel. A module is a piece of code that extends Drupal’s functionalities. In WordPress, it is called a plugin; in Joomla an extension.

We will install the Token module. The webpage for the module describes it this way: “Provides additional tokens not supported by core (most notably fields), as well as a UI for browsing tokens.” So, to simplify what it means, the Token module is needed by other modules in order to carry out their own functions.

Installing via the Drupal dashboard

1. Click here to go to the webpage for the Token module.

Drupal 8 Token Module

2. Scroll down the page to the Downloads section and copy the URL for the module’s compressed file.

Drupal Token Module

3. Log in to the dashboard for your Drupal website and click on the Extend tab at the top menu.

Drupal 8 Extend tab

4. The Extend page will appear. Click on the Install new module button. If the button is missing on the page, you can try to access the complete page directly at /admin/modules/install.

Drupal Extend Page

5. The Install new module page will appear. Paste the URL for the Token module’s compressed file into the field below Install from a URL.

Drupal Install New Module

6. Click on the Install button.

7. When the installation is complete, the Update manager page will appear. Look for the subheading Next steps towards the bottom of the page and click on the Enable newly added modules link below it.

Drupal Enable Newly Added Module

8. You will be brought back to the Extend page. Scroll down the page to the subheading Other and tick the checkbox for the Token module. After which, click on the Install button at the bottom of the page.

Drupal 8 Token Module

9. It’s finished. There is no configuration needed for the Token module (as in the case of other modules) since its function is to provide support for the functionalities of other modules.

Installing via cPanel

1. Click here to go to the webpage for the Token module.

Drupal 8 Token Module

2. Scroll down the page to the Downloads section and download the Token module’s compressed file to your computer.

Drupal Token Module

3. Log in to the cPanel for your web host.

4. Go to the directory for your domain (and to your Drupal installation subdirectory if you installed Drupal in a subdirectory).

5. Go to the modules folder and upload to it the Token module compressed file.

6. Extract the compressed file.

7. Log in to the dashboard for your Drupal website and click on the Extend tab at the top menu.

Drupal 8 Extend tab

8. The Extend page will appear.

Drupal Extend Page

Scroll down the page to the subheading Other and tick the checkbox for the Token module. After which, click on the Install button at the bottom of the page.

Drupal 8 Token Module

9. It’s finished. There is no configuration needed for the Token module (as in the case of other modules) since its function is to provide support for the functionalities of other modules.