Skip to main content

Installing the extension

Go through the following steps to install the extension.

Prepare for installation

  1. Back up your store's database and web directory.
  2. Log in to the SSH console of your server and navigate to the root directory of your Magento 2 store.
  3. Copy the installation instructions from the My Downloadable Products page and paste them into the SSH console. Press ENTER to proceed.
tip

To manually install the module in the app/code/ directory, download the archive from My Downloadable Products -> View & Download, unpack it, and copy the contents to Magento's root directory. Then, access your server via SSH, navigate to the Magento 2 root, and follow the installation steps.

Execute the following commands to install

  1. Run the following command to enable the extension:

    php -f bin/magento module:enable Mirasvit_Core Mirasvit_Seo Mirasvit_SeoAutolink Mirasvit_SeoSitemap Mirasvit_SeoContent Mirasvit_SeoMarkup Mirasvit_SeoToolbar Mirasvit_SeoAudit Mirasvit_SeoAi Mirasvit_SeoGraphQl

    If you are using native Magento Layered Navigation and no third-party Layered Navigation extensions are installed on your store, you can also enable Mirasvit SEO Filter:

    php -f bin/magento module:enable Mirasvit_SeoFilter
  2. Run the following command to install the extension:

    php -f bin/magento setup:upgrade
  3. Compile the code for the installed extensions:

    php -f bin/magento setup:di:compile
  4. Clear the cache:

    php -f bin/magento cache:clean
  5. Deploy static view files:

    rm -rf pub/static/*; rm -rf var/view_preprocessed/*;
    php -f bin/magento setup:static-content:deploy

If you are using the Hyvä theme

Hyvä support ships with the extension, so there is no compatibility module to install. The Hyvä templates live beside their Luma counterparts and stay dormant on a Luma store, so the commands above are all you need.

note

Until version 2.13.0 Hyvä support was a separate package, mirasvit/module-seo-hyva, providing the Hyva_MirasvitSeo, Hyva_MirasvitSeoAutolink, Hyva_MirasvitSeoMarkup, Hyva_MirasvitSeoSitemap, and Hyva_MirasvitSeoToolbar modules. All of them are gone. If the package is still installed on your store, remove it before upgrading. See how to upgrade the extension.

GraphQl

The Mirasvit_SeoGraphQl module ships with the extension and is enabled by the command above, so there is nothing extra to install. It provides the mstSeoContent query used by headless and PWA storefronts.

note

Until version 2.13.0 this was a separate package, mirasvit/module-seo-graph-ql. If it is still installed on your store, remove it before upgrading. See how to upgrade the extension.


If you want to upgrade the extension, please refer to the how to upgrade the extension page.
To temporarily disable or remove it, use the commands from the how to disable the extension guide.