How to Install Drupal Commerce on Arch Linux

This tutorial will guide you through the process of installing Drupal Commerce on Arch Linux. Before we begin, make sure you have the following:

  • An Arch Linux installation with sudo access
  • An internet connection

Let's get started.

Step 1: Install Drupal Commerce Dependencies

We need to install the following dependencies required for Drupal Commerce installation.

sudo pacman -S apache mariadb mariadb-clients mariadb-libs php php-apache php-mysql php-gd php-intl

To avoid any error, the php version of php-apache and php-mysql should be equal.

Step 2: Configure and Start Apache & MariaDB Services

Before installing DrupalCommerce, We need to Configure Apache and MariaDB services.

Configure MariaDB

To start and enable the MariaDB services at boot, run the following commands.

sudo systemctl start mariadb
sudo systemctl enable mariadb

Run the MariaDB installation security script.

sudo mysql_secure_installation

Configure Apache

To start and enable the Apache services at boot, run the following commands.

sudo systemctl start httpd
sudo systemctl enable httpd

Step 3: Install DrupalCommerce

Download the latest version of Drupal Commerce by running the following command:

wget https://www.drupal.org/download-latest/tar.gz -O drupal_commerce.tar.gz

Extract the downloaded archive to the Apache's document root directory:

tar -xzf drupal_commerce.tar.gz --strip-components=1 -C /srv/http/

Type the URL http://localhost in your browser's address bar to launch the Drupal configuration page.

The system will show the Drupal Commerce install page.

Congratulations! You have successfully installed Drupal Commerce on Arch Linux. Enjoy!