How to install Magento 2 Extension?

In order to install the magento 2 extension, follow these steps:

Step 1 : Download the extension.

Step 2 : Unzip the extension file in a temporary directory.

Step 3 : Upload the extension file in your app/code Directory.

Step 4 : After uploading the extension in your directory, use the following commands from command line:

To Remove var/generation , var/cache , var/page_cache directory. You need to run the command:

rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/*

Give Permissions to var, generate and pub folders:

sudo chmod  0777 -R var/* generated/* pub/static/*

For compile the code run this command:

php bin/magento setup:di:compile

For upgrading the code run this command:

php bin/magento setup:upgrade

For deploy the static content run this command:

php bin/magento setup:static-content:deploy -f

Then give permissions to these folders:

sudo chmod  0777 -R var/* generated/* pub/static/*

Comments are closed.