There are different ways to enable/disable module in Magento 2:
By using CLI commands
1. By using CLI commands from the root directory of your Magento 2 store:
Disable module
PHP
1 2 3 | php bin/magento module:disable Vendor_ModuleName php bin/magento setup:upgrade |
Enable module
PHP
1 2 | php bin/magento module:enable Vendor_ModuleName php bin/magento setup:upgrade |
Check the status of all modules
PHP
1 | php bin/magento module:status |
Edit app/etc/config.php
2. Or we can edit app/etc/config.php, to disable the module, we need to set it to 0, to enable module – to set it to 1:
After editing app/etc/config.php run the following command:
PHP
1 | php bin/magento setup:upgrade |
Official documentation
More info in the official documentation:
Lilya GogolevaMagento Developer
Rate us
Please wait...
Related articles
- Follow this tutorial to clear Magento cache with no efforts. Also, you will...
- This easy and effortless tutorial on how to create the new admin account in...
- If you don’t know how to create a custom cache type in Magento, this article...
- SSL is very important for every online store as it initiates a secure session...
- The sitemap is highly important in case you want to optimize your website for...
- Want to manage email templates in your Magento 2 store? Check our article and...
- Do you know how to create custom product type? We know! And would be glad to...
- Want to have a Magento 2 Multistore? Read how our team setups...