In this topic, we will discuss about How to Install Magento 2 extensions, specially Install Mageplaza Extensions. There are 3 different solutions to install Mageplaza extensions:
It’s very important to backup all of themes and extensions in Magento before installation, especially when you are working on a live server. We strongly recommend you to do not omit this step.
Select a solution based on downloaded package:
After purchasing order from Mageplaza, go to My Downloadable Products page to download the One Step Checkout package. You have to login (User/Password or Social accounts) before accessing the
My Downloadable Products.
Here are the screenshot of
My Downloadable Products page.
Now click on extension version link to download the package.
Let’s extract the package and connect to your server using SFTP Clients above. Then upload files, folders to your server, see this video:
Upload the app folder to Magento 2 root folder.
To complete the installation process, we need to run the following command lines:
composer require mageplaza/module-core php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
If you got error:
Mageplaza_Core has been already defined, read this solution
Now time to check result in frontend.
In this guide, we will show you how to install Mageplaza Blog extension one of the best-seller extensions at Mageplaza. Note that: this solution only apply for free extensions.
Run the following command in Magento 2 root folder
composer require mageplaza/magento-2-blog-extension php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
To generate Public/Private Key pair please see here
composer require mageplaza/magento-2-one-step-checkout-extension php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
composer require mageplaza/layered-navigation-m2 php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
Could not read /home/magento/.composer/auth.json
Answer: Let run
sudo chmod 777 /home/magento/.composer/auth.json make sure the file is writable.
Answer: Go to Access Keys page and
Create A New Access Key
Now enter the Access key name: We type
We get Public key (Username), and Private Key (Password)
It comes to the end of tutorial: Install Magento 2 Extension.