Admin
Moderating
Donor Member
Master Member
Elite Member
Active Member
- May 31, 2020
- 2,980
- 1,693
Before starting installation, confirm your Magento 2 store is already fully functional and take a complete backup of your database and website files. Test on staging before live production deployment.
For production environments, ensure maintenance mode is enabled before running the upgrade process.Enable maintenance mode:
- Check required composer dependenciesOpen the extension package readme to verify required composer packages. Some extensions depend on extra libraries. You must install these required dependencies first via Composer before enabling the module. Missing dependencies will trigger module activation errors or break your site.
- Confirm correct upload directoryUnzip your downloaded extension package locally. Double-check the inner folder structure. Extension module files must be uploaded into app/code/ inside your Magento root directory.Do not upload the top-level archive folder directly. Verify you can see the etc/module.xml file once inside your module folder after upload, this confirms you placed files in the proper location. Wrong directory placement is one of the most common install failures.
- Set proper file and folder permissionsAfter upload, apply correct permissions for your Magento files and folders. Incorrect permissions prevent Magento from reading module files or compiling static assets.Folders: set to 755Files: set to 644 Never permanently use 777 permissions on production stores.
- SSH installation commandsConnect to your Magento root directory over SSH, then run these commands one by one:
Code:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
For production environments, ensure maintenance mode is enabled before running the upgrade process.Enable maintenance mode:
Disable maintenance mode once all commands finish:php bin/magento maintenance:enable
After all commands complete, log into your Magento admin panel. Navigate to Stores > Configuration, locate the extension settings menu and configure it. Check both backend admin and store frontend to confirm no errors appear.php bin/magento maintenance:disable
Last edited: