Hello Magento Folks👋,

In this tutorial, I will illustrate How to Upgrade Magento Version from 2.3.X to 2.4.2. Last article I have discussed How to Remove Magento Product Attribute From Magento 2 Backend checkout in case you missed it. Let’s start to upgrade 2.4.2:

Quick Summary:

As we all know that Magento made a release of Magento 2.4.2 and if you are Magento 2 store owner or Magento developer then you should never miss this update. Check detailed information of Magento 2.4.4 release notes in our previously published article Magento 2.4.4: Release Notes (Everything You Need to Know). 

Enhance your Magento 2 store by upgrading it with the latest version of Magento 2.4.2. by our certified and experienced developers. Check out our article on How to Install Magento 2 for installing your Magento 2 Store Smoothly.

magento 2 mobile app

Steps to Upgrade Magento Version from 2.3.X to 2.4.2 

Firstly we will prepare our site for Upgrade

Assure you have configured your server that works with PHP 7.4. As per the release notes of Magento 2.4.2, it only supports PHP 7.4. You can also install Magento 2.4.2 using PHP 7.3 at your own risk as it is not tested anymore. The best practice is to use the latest version of PHP 7.4.

Check your PHP version with the help of the given below command:

Assure your composer is pointing to the accurate PHP version. By applying the below-given command you can verify your composer’s PHP version

Assure you have configured your server that works with Elasticsearch 7.9.x. As per the release notes of Magento 2.4.2, is recommended to use Elasticsearch 7.9.x. You can apply the below-given command to verify your version of Elasticsearch. 

Learn from scratch How to Install Magento 2.4 with Elasticsearch In Ubuntu and check the tutorial at Magento 2: How To Configure Elasticsearch.

Or 

Now backup your database as well as code. Most of the developers have the best practice to manage their code in GitHub. So for them, there is no need to take code backup as they will get the code from there itself but the database backup is mandatory for all. 

Upgrade Magento Version from 2.3.X to 2.4.2:

Step 1: Implement the below command to convert your site into maintenance mode if you are performing on a live site.

Step 2: In case you are implementing the upgrade of Magento 2.4.2 into your local system then you can ignore the initial step and 

Grab backup composer.json using the below-given command.

Step 3: Now we will Install the Composer update plugin

Step 4: After this, you will require to update the composer.json with the latest version.

In this scene, we have Magento Version 2.4.2. so you can go to the Magento 2 installation root path and fire the below-given code.

Step 5: Fire the following command

This process will consume some time to get completed. Mainly this command will download all the required packages and upgrade your Magento version from 2.3.x to 2.4.2.

After you are done with the above steps fire below given commands.

Step 6: Clear cache and regenerate code.

Step 7: At last don’t forget to disable maintenance mode

That’s it you are upgraded to Magento 2.4.2

Over to You:

Hopefully, all are able to install Magento 2.4.2 successfully by implementing the above-given steps. For upgrading your Magento 2 store with the latest Magento 2.4.2 version you can use our Magento Upgrade service and let your store get upgraded to Magento 2.4.2 by certified and professional developers.

Dont’s forget to drop your comment in the comment section below and also share the tutorial with your Magento friends so they can also get upgraded to the latest Magento 2.4.2 version. 

Till Then Stay Safe and Keep Developing

Happy Upgrading🙂.

Magento-development-services

Click to rate this post!
[Total: 31 Average: 4.1]