cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading Magento

Upgrading Magento

I have ecommerce store on 2.3.2 community edition.

i want to upgrade to version 2.4.1 CE

how to do it.

 

best trackball mouse

1 REPLY 1

Re: Upgrading Magento

Hi,

You can follow the instructions below:

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

 
1
php bin/magento maintenance:enable

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

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

 
1
cp composer.json composer.json.bak

Step 3: Now we will Install the Composer update plugin

 
1
2
3
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.1. so you can go to the Magento 2 installation root path and fire the below-given code.

 
1
composer require magento/product-community-edition=2.4.1 --no-update

Step 5:

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

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

Step 6: Clear cache and regenerate code.

 
1
2
3
4
5
6
7
8
9
10
11
12
13
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

 
1
php bin/magento maintenance:disable

That’s it you are upgraded to Magento 2.4.1

 

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