Showing results for 
Search instead for 
Did you mean: 

Upgrading from 2.2.7 to 2.4.* CE

Upgrading from 2.2.7 to 2.4.* CE

Hi, I am currently using 2.2.7 CE and plan to upgrade via composer/CLI. Is possible to upgrade to the latest version? Is there a way to check the highest version I can upgrade to for the community edition?
Also do I need to upgrade my system before or after I start the magento upgrade? I can see here the system requirements are different from what I have currently on my server.


Re: Upgrading from 2.2.7 to 2.4.* CE


It is possible to upgrade via composer.

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Upgrading from 2.2.7 to 2.4.* CE

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


You can refer to this article.

If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool