Install Magento 2 Extension

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: 1. Downoad from Mageplaza, 2. Download from Marketplace, 3. Install via Composer.

Important:

  • We recommend you to duplicate your live store on a staging/test site and try installation on it in advance
  • Backup magento files and the store database

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.

To Install Magento 2 Extension:

Solution #1: Install a package from store.mageplaza.com

Step 1: Download SFTP clients

Download SFTP clients, we recommend clients: FileZilla, WinSCP. In this case, we are using WinSCP to install Mageplaza One Step Checkout extension.

Step 2: Download the 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.

login form

Here are the screenshot of My Downloadable Products page.

download extension

Now click on extension version link to download the package.

downloaded extension

Step 3: Upload files to server

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 magento 2 extension

Upload the app folder to Magento 2 root folder.

Step 4: Run command line

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

Step 5: Check result

Now time to check result in frontend.

If you get any issues, check FAQs. If you still get stuck, get support at Mageplaza Helpdesk

Solution #2: Install a package from Marketplace.magento.com

Method 1: Composer command line:

To generate Public/Private Key pair please see here

  • Install Mageplaza One Step Checkout run the following command line:
composer require mageplaza/magento-2-one-step-checkout-extension
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
  • Install Layered Navigation run the following command line:
composer require mageplaza/layered-navigation-m2
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Method 2: Download a zip package

Step 1: Download the package

Go to Magento Marketplace Downloadable Products page

Click on Download button to download Mageplaza Better Blog extension

Now you got the package magento 2 blog package

Step 2: Upload the package

Before you upload the package, you have to create a folder on your server called app/code/Mageplaza/Blog then extract the package to app/code/Mageplaza/Blog

composer require mageplaza/module-core
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Now got to your website and check result. If you get any issues, check FAQs. If you still get stuck, get support at Mageplaza Helpdesk

Solution #3: Install a package via Composer

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

Now got to your website and check result. If you get any issues, check FAQs. If you still get stuck, get support at Mageplaza Helpdesk

Find more Free extensions at Mageplaza on Github

FAQs

Q: I got error: ` Could not read /home/magento/.composer/auth.json`

error

Answer: Let run sudo chmod 777 /home/magento/.composer/auth.json make sure the file is writable.

Q: Magento asks me enter Username and password

ask username Answer: Go to Access Keys page and Create A New Access Key magento 2 access key

Now enter the Access key name: We type Mageplaza Store

mageplaza store

We get Public key (Username), and Private Key (Password)

public and private key

That’s it.

It comes to the end of tutorial: Install Magento 2 Extension.

Please leave comments if you have any questions, feedbacks.

Comments for

Magento 2 featured topics

You also may like these Magento 2 Extensions

One Step Checkout

$199
18 reviews

Layered Navigation

$99
11 reviews

SEO

FREE
5 reviews

Shop By Brand

$99
no review