How to migrate Magento 2.3 to 2.4

How to Migrate Magento 2.3 to 2.4

If you are going through a challenge to upgrade or how to migrate Magento 2.3 to 2.4 version then this article may help you. Let’s get started with the basic steps prior to the migration of Magento.

Steps on how to migrate Magento 2.3 to 2.4

In the first step, we need to check the PHP version of our server. The PHP version installed in our server must be greater than or equal to PHP 7.4 version. For checking the PHP version just run the command in your terminal.

php -v

If the PHP version is PHP 7.4 or greater then it is good and if it is PHP 7.3 or lesser then we need to upgrade the PHP version so that we can just run the below command in your terminal.

sudo apt install php7.4

If the OS which you are working on is Ubuntu then you can use the below command to switch to the PHP version.

sudo update-alternatives --set php /usr/bin/php7.4 

If the PHP version is set to PHP 7.4 then you can run the below command for the required extensions of PHP to run Magento.

sudo apt install php7.4-fpm php7.4-common php7.4-mysql php7.4-gmp php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-gd php7.4-xml php7.4-cli php7.4-zip php7.4-soap php7.4-bcmath

Now it is all set to update the Magento version so for that run the below command.

composer require magento/product-community-edition 2.4.4 --no-update

Now if the version is changed in the composer.json file for your Magento setup then run the below command.

composer update

After the above command is successfully completed then run the below commands.

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:clean
php bin/magento cache:flush

Now check and go through the whole Magento site if there are no errors related to the new updated PHP version or Magento degradation. If there is any issue then first go through the all modules in the app/code directory.

For more information to upgrade Magento 2.3 to 2.4 go through the official Magento site –

Hope now you have done with the challenge of how to upgrade Magento 2.3 to 2.4 version installed. Share if you find this article helpful. Happy coding!!!.

Also Read:

4 4 votes
Article Rating
Notify of
Inline Feedbacks
View all comments