Installing a Magento 2 Module

Magento Module Installation

This article is NOT meant to replace the module author’s instructions; however, it is a handy supplement when things go wrong.

We use these same steps on our DevOps projects for Magento, and 99.9% of the time this process works without issue.

First, it is important to note that we are doing a manual module install from the command line [CLI] using an SSH client, Putty, as per our stack instructions for WinSCP.

Second, these instructions assume you have already SFTP’d the module to the proper directory path on Magento as per the author’s instructions.

Next we follow these set of commands:

cd /var/www/magento

Note: All G4/G5F stacks have compile commands in a script called amistacx.sh in the Magento root directory. Make the file executable “x”, and rename it. Then:

sudo ./amistacx.sh

After these steps are completed, you can log into the Magento admin console, and go to the Magento Component Manager to verify installation, or you can run this command, and check the status of the module:

sudo php bin/magento module:status

Tip! Make sure you are installing a module for the correct version of Magento! Many times customers report issues to us only to later discover that they were attempting to install an M1 module on M2. Also make sure the php version running is compatible with your module.

Good to go!

Next >> Theme Installs on M2