How to install magento 2 extension from zip file

 

As you know there are only 2 methods to add extension to your Magento 2  website

The first one is to use COMMAND LINE

The second one is to install manually using Magento 2 configurations or via marketplace.

.Option 1:  Magento 2 install extension using CMD or cammand line

Your Magento 2 extensions can be installed in a few minutes by going through these following steps

1.Download or purchase the extension from magento 2 marketplace or any other platforms like mageplaza or Bss or any other vendors

2.Login to your Magento 2 Hosting site using SSH connection or FTP

3.After successful SSH login, using the command line (shell), go to  Magento 2  root directory where Magento 2  is installed

4.Upload Extension (as Zip or tar.gz) to your Magento 2  installation root directory means go to the app/code and upload the extension

5.Unzip the file in a temporary directory into the app/code folder

Then you are successfully uploaded your extension you need to run the below cammands via cammand line

sudo php bin/magento setup:di:compile
sudo php bin/magento setup:upgrade
sudo php bin/magento setup:static-content:deploy -f
sudo chmod -R 0777 var/
sudo chmod -R 0777 generated/
sudo chmod -R 0777 pub/static/

Suppose you want to install Mageplaza Smtp download its code from github

Go to the magento 2 folder

 

 

Then run cammands

Thanks for reading You make also like

How to install magento 2 extension from zip file

heredity and evolution class 10 important questions

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top