---
title: "How to Upgrade Magento Version from 2.3.X to 2.4.2"
url: "https://magecomp.com/blog/upgrade-magento-version-from-2-3-to-2-4/"
date: "2020-10-05T17:25:45+00:00"
modified: "2020-10-05T17:25:45+00:00"
author:
  name: "Gaurav Jain"
  url: "https://magecomp.com/"
categories:
  - "Magento Tutorials"
word_count: 665
reading_time: "4 min read"
summary: "Hello Magento Folks?,"
description: "Magento made a release of Magento 2.4.0 and if you are a developer you should never miss this update. Learn How to Upgrade Magento Version from 2.3.X to 2.4.0"
keywords: "Magento Tutorials"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Resolve the Issue of Navigation Menu Not Displaying in Magento 2"
    url: "https://magecomp.com/blog/how-to-fix-navigation-menu-not-showing-in-magento-2/"
  - title: "Guidance to Change the Admin Startup Page in Magento 2"
    url: "https://magecomp.com/blog/change-admin-startup-page-magento-2/"
  - title: "Magento 2: How to Remove Delete Attribute Option from Product Attribute"
    url: "https://magecomp.com/blog/remove-delete-attribute-option-from-product-attribute/"
---

# How to Upgrade Magento Version from 2.3.X to 2.4.2

_Published: October 5, 2020_  
_Author: Gaurav Jain_  

![How to Upgrade Magento Version from 23X to 240](https://magecomp.com/blog/wp-content/uploads/2020/10/How-to-Upgrade-Magento-Version-from-23X-to-240-1-1024x512.webp)

**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**](https://magecomp.com/blog/remove-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)](https://magecomp.com/blog/magento-open-source-2-4-4-release-notes/).**
Enhance your [**Magento 2 store by upgrading**](https://magecomp.com/magento-upgrade-service.html) 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](https://magecomp.com/blog/how-to-install-magento-2/)** for installing your Magento 2 Store Smoothly.
[![magento 2 mobile app](https://magecomp.com/blog/wp-content/uploads/2021/12/Magento-2-Mobile-App.png)](https://mobileapp.magecomp.com/?utm_source=magecomp_blog&utm_medium=mobile_app_banner&utm_campaign=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:
```
php -v
```

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

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**](https://www.youtube.com/watch?v=3RFw9j4ihag&ab_channel=MageComp) and check the tutorial at [**Magento 2: How To Configure Elasticsearch**](https://magecomp.com/blog/magento-2-how-to-configure-elasticsearch/).
```
curl -XGET ‘http://localhost:9200’
```

Or
```
curl -XGET ‘http://YOURDOMAIN:9200’
```

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.
```
php bin/magento maintenance:enable
```

**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.
```
cp composer.json composer.json.bak
```

**Step 3:** Now we will Install the Composer update plugin
```
composer require magento/composer-root-update-plugin=~1.0 --no-update

composer update
```

**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.
```
composer require magento/product-community-edition=2.4.2 --no-update
```

**Step 5:** Fire the following command
```
composer update
```

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.
```
php bin/magento cache:clean

rm -rf var/cache/*

rm -rf var/page_cache/*

rm -rf generated/code/*

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy -f
```

**Step 7:** At last don’t forget to disable maintenance mode
```
php bin/magento maintenance:disable
```

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**](https://magecomp.com/magento-upgrade-service.html) and let your store get upgraded to Magento 2.4.2 by certified and professional developers.
<ins class="adsbygoogle" data-ad-client="ca-pub-4820733326966058" data-ad-format="auto" data-ad-slot="2195221211" data-full-width-responsive="true" style="display: block;"></ins>
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](https://magecomp.com/blog/wp-content/uploads/2020/06/Hire-Magento-4.png)](https://magecomp.com/magento-development-services?utm_source=magecomp&utm_medium=blog&utm_campaign=cta)


---

_View the original post at: [https://magecomp.com/blog/upgrade-magento-version-from-2-3-to-2-4/](https://magecomp.com/blog/upgrade-magento-version-from-2-3-to-2-4/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-10-05 18:42:22 UTC_  
