As recently Magento has released its latest version Magento 2.4.1, in which many improvements in core quality can be seen. With the latest version of Magento, Adobe has more and more facilitated all Magento eCommerce merchants and Magento developers which is raising Magento user’s expectations even more. There are many Magento Experts who update their customers’ stores to give them the benefit of higher Magento development services. If you also want to take advantage of the features of the Magento latest version, then this post will help you to the fullest. In this article, our Magento experts have shown how to update Magento eCommerce stores in Magento 2.4.1.
Here you can see step by step guide on how to upgrade the Magento version from 2.x.x to 2.4.1:
Go to Your Root Directory
Step 1: Take backup your current composer.json file using the command line
cp composer.json composer.json.backup
Step 2: For Magento Open Source:
composer require magento/product-community-edition=2.4.1 --no-update
Step 3: Update dependencies:
Step 4: If authentication keys required then (step 7 skip if not required)
- Go to Magento Marketplace.
- Log in to the Magento Marketplace. If you don’t have an account, click Register.
- Click your account name in the top-right of the page and select My Profile.
- Click Access Keys in the Marketplace tab.
- Click Create a New Access Key. Enter a specific name for the keys (e.g., the name of the developer receiving the keys) and click OK.
New public and private keys are now associated with your account that you can click to copy. Save this information or keep the page open when working with your Magento project. Use the Public key as your username and the Private key as your password.
Step 5: Manually remove the var/cache, var/page_cache, and var/generation directories.
rm -rf var/cache/* var/page_cache/* var/generation/*
Step 6: Run Command for Upgrade Magento and Compile :
php -dmemory_limit=5G bin/magento setup:upgrade
php -dmemory_limit=5G bin/magento setup:di:compile
Step 7: Deploy Static Content, flush and clean cache using this command:
php -dmemory_limit=5G bin/magento setup:static-content:deploy -f
php -dmemory_limit=5G bin/magento cache:flush
php -dmemory_limit=5G bin/magento cache:clean
Step 8: You should run reindex for a better performance after upgrading.
php -dmemory_limit=5G bin/magento indexer:reindex
We hope this post helps you to easily upgrade your Magento store, but if you have any problems related to the Magento 2 upgrade, you can contact us anytime. Our Magento developers are ready to assist you at all times.
You can also see information related to the upgrade of Magento 2.4.0 in our previous post.
Thank You 😉