Hi guys,
In this tutorial I’ll show you how to install a Magento 2 extension using the SSH terminal.
Before installation (Prerequisite)
Before we begin the installation, you must first download the Magento 2 extension you want to install and then move those folders from the archive to your Magento 2 root directory. Once you’ve done that, just follow the steps below to install the Magento 2 extension.
1. Connect to your Magento Web Server using SSH
To do this, run the following command in the terminal and enter the username and password required (you can skip this step if you’re installing the extension on a local machine).
1
|
ssh username@domain.com
|
2. Change your current directory to Magento 2 web root directory
To do that, just run the following command.
1
|
cd /full_path_to_magento2
|
3. Start setup process
Next, you need to run the setup process for the extension. To do that, just run the command given below.
1
|
php bin/magento setup:upgrade
|
4. Run the single-tenant compiler
To execute the single-tenant compiler, just run the below mentioned command.
1
|
php bin/magento setup:di:compile
|
5. Deploy static view files
After you’ve successfully run the compiler, you need to deploy the static view files. To do that, just run the command given below.
1
|
php bin/magento setup:static–content:deploy
|
6. You’re done
And that’s it. You can now navigate to your Magento 2 admin panel and start configuring your extension.Hope you found this post useful. If you have a Magento design, development or Magento customization requirement you would like to discuss (for Magento 1 or Magento 2) please get in touch with us. To learn more about our Magento development services, please visit https://www.folio3.com/magento-development