Best 3 Simple Ways to Upgrade Magento 2 Store in 2022

I am explaining you to the best 3 simple ways to upgrade your Magento 2 e-commerce store.

It is important for any eCommerce store to give a better experience to its customers, as well as keeping the data of the store and its customers safe is also very important.

In this episode comes a step that also includes keeping your Magento e-commerce store up to date which is a very important step to maintain the high-security level.

I am telling you the best and easiest way to upgrade your Magento store, with the help of which you can upgrade your store.

The easiest and safest way to upgrade a live website is to create a clone website of your website or keep a complete backup of your live website only then follow the up-gradation step.

 

Basic Steps to update Magento 2 - 3 Simple Ways to Upgrade

There are five basic steps to update Magento 2 store.

Step 1: Take Complete Backup of your store

Step 2: Enable maintenance mode

Step 3: Select Magento 2 Version

Step 4: Run Composer update Command

Step 5: Check the current Magento 2’s version

 

Method 1: Composer Upgradation

You can take the help of a composer to upgrade your Magento 2 store.
To update the Magento website through composer, you need to install composer first.

Then the version you want to update from will have to be mentioned in the composer upgrade.

Then after that composer version, no upgrade command has to be run.

You can check the complete step-by-step guide to upgrade your Magento 2 store through composer in detail.

 

Step 1: Change The Store Mode

In order to upgrade the magento store, you have to change the mode into maintenance.

php bin/magento maintenance:enable

 

Step 2: Mention Your Version

composer require <product> <version> —no-update

Now run the below command

composer update

Example:

Suppose you want to upgrade your Magento 2 store to Magento 2 CE 2.4.3-p1 Then use the command as in the example:

composer require magento/product-community-edition 2.4.3 —no-update

Composer Upgradation Magento 2

Then,

composer update

Best 2 Simple Ways to Upgrade Store

Similarly, you can follow this step to upgrade to any version of the Magento store.

Now run the below command

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy

php bin/magento cache:clean

php bin/magento indexer:reindex

 

Step 3. Disable the Maintenance Mode

Now, you can disable the maintenance mode and put your store back to work by running the command:

php bin/magento maintenance:disable

 

Method 2: Upgrade Magento 2 Store Manually

The third way is to go to the Magento store and download the latest Magento version from there.

Then extract it and paste it in the root directory of your Magento store and if any file or folder is asking to replace then replace it.
After this, now you run the setup upgrade command, then compile it and then deploy it.

After this do the indexing, now you flush all the cache of the store, your store has been upgraded.

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy

php bin/magento cache:clean

php bin/magento indexer:reindex

manual update Magento 2 Store

If even after this your store is not showing Upgraded then run the below command and then run all the above commands one by one.

Now you can check your Magento 2 store by opening the browser you can see that your store has been upgraded without internet.

rm -rf var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/

And then run above command again.

 

Method 3: Web Step Wizard Upgradation

Now the last method is to use the web setup wizard for the up-gradation.

This upgrade step is simple for those who are not able to use Magento 2 Composer in a better way.

 

Step 1: Login into Magento 2 Admin

For this, you have to log in to your magento 2 admin and go to system tools and click on the web setup wizard.

You should have administrator access for your admin user.

System > Tools > Web Setup Wizard

 

Step 2. Fill System Configuration Details

Now you have to enter the authentication key of the marketplace, after that, you have to save and proceed to the next stage.

 

Step 3. Save config and then System Upgrades

In the meantime, the Marketplace may ask you to update other technologies and tools, such as updating the PHP version.

And may also ask you to update your database version.

For this, it is better that you keep both versions updated only then you can go to the next step.

Note: Please take backup of your store before upgradation.

 

 

Check Store Version - 3 Simple Ways to Upgrade

Now you can check the store version via the following Magento 2 command.

php bin/magento --version

 

Upgrade Magento 2 Store Service in 2022

If you also want to update your Magento 2 website at a very cheap price, then you can contact us for this.

We update the Magento 2 store with complete database backup at very cheap rates in 2022.

For this you do not need to pay any extra charge, we keep a complete backup of your store and you will get your store updates within 6 hours.

 

Recommended Posts:

Website Speed Optimization: How to Make Website Faster