How to install Magento 2 module – complete process step by step?
Today, I want to share the process for module installation in Magento 2 eCommerce website. Follow the step by step process, if found any issue then write issue in the comments.
For good practice in module installation, data import/export, data migration, upgrading version and patch installation in Magento website, the developer must take database and website backup first. How to take Magento 2 database and website backup using putty, I will share the complete process soon.
Now back to the topic to install the Magento 2 module. Let’s discuss the process step by step
1. Please place a module in the root folder of App -> Code (folder)
2. Check the status of a placed module in the module list
[code]
php bin/magento module:status
[/code]
3. If the module found in disable status (at the end) list then first enable the module i.e.
[code]
php bin/magento module:enable VendorName_CompanyName
[/code]
Now check the status of new module in app -> etc -> config.php file, if the module’s status updated then further continue the next /process.
‘VendorName_CompanyName’ => 1
OR check module status using module:status cli i.e. php bin/magento module:status
4. Run rest of the commands one by one
[code]
i. php bin/magento setup:upgrade
ii. php bin/magento setup:di:compile
iii. php bin/magento setup:static-content:deploy
iv. php bin/magento cache:clean
v. php bin/magento cache:flush
vi. php bin/magento indexer:reindex
[/code]
Now new Magento 2 module ready for work. Again, query me if found any issue. Thanks
Leave a Reply
You must be logged in to post a comment.