To successfully install a Magento 2 extension, please follow these steps:
-
Backup your data:
Before proceeding with any installation, it's crucial to back up your web directory and store database. This ensures you have a safe copy of your data if anything goes wrong during installation.
-
Access your store root folder:
Install the extension by uploading the package into a proper directory:
path_to_the_store_root_folder/app/code/ZestLogic
Replace `path_to_the_root_folder` with the path to your store's root folder.
-
Run the setup upgrade command:
Execute the following commands to perform the setup upgrade:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
These commands ensure your Magento installation is properly upgraded and ready to incorporate the new extension.
-
Deploy static content:
After upgrading, deploy the static content using the following command:
php bin/magento setup:static-content:deploy -f
This step is essential for generating static content required for your extension to function correctly.
-
Flush store cache:
To prevent any caching issues, flush the store cache:
php bin/magento cache:clean
php bin/magento cache:flush