Installing a Magento 2 extension

To successfully install a Magento 2 extension, please follow these steps:

  1. 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.

  2. Access your store root folder:

    Using your server's SSH console, navigate to your store's root folder. You can do this by entering the command:
    cd path_to_the_root_folder
    Replace `path_to_the_root_folder` with the path to your store's root folder.

  3. 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.

  4. 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.

  5. Flush store cache:

    To prevent any caching issues, flush the store cache:
    php bin/magento cache:clean
    php bin/magento cache:flush

Want to improve your store? Talk to us now.

  • Explore your objectives and what you aim to achieve.
  • Uncover the challenges you’re currently facing.
  • Review tailored solutions to meet your needs.
  • Address any questions or concerns you have.
By clicking on the button, you consent to the processing of personal data and agree to the site’s Privacy Policy.