Hello Magento Folks👋,

In this tutorial, I will illustrate How to Upgrade Magento Version from 2.3.X to 2.4.0. 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.0:

Quick Summary:

As we all know that Magento made a release of Magento 2.4.0 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.0 release notes in our previously published article Magento 2.4: Release Notes (Everything You Need to Know). 

Enhance your Magento 2 store by upgrading it with the latest version of Magento 2.4.0. by our certified and experienced developers. Checkout How to Install Magento 2 for installing Magento 2 Smoothly.

Steps to Upgrade Magento Version from 2.3.X to 2.4.0 

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.0, it only supports PHP 7.4. You can also install Magento 2.4.0 using PHP 7.3 at your own risk as it is not tested anymore. The best practice is using the latest version of PHP 7.4.

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

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

Assure your server has installed and configured Elasticsearch 7.6.x. because MySQL is no longer supported by Magento 2.4.0. 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 the 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.0:

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

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

Over to You:

Hopefully, all are able to install Magento 2.4.0 successfully by implementing the above-given steps. For upgrading your Magento 2 store with the latest Magento 2.4.0 version you can use our Magento Upgrade service and let your store get upgraded to Magento 2.4.0 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.0 version. 

Till Then Stay Safe and Keep Developing

Happy Upgrading🙂.

[Total: 2   Average: 5/5]