How to upgrade magento v2.3 to magento v2.4 using Composer and Command line

Опубликовано: 30 Сентябрь 2024
на канале: 77 Tips
3,174
21

- SUBSCRIBE to see more videos from 77 Tips --

How to upgrade magento v2.3 (v2.3.4) to magento v2.4 using Composer and Command line


Please Backup database and file

First, run elasticsearch, ok

1.To install the plugin:
cmd:

composer require magento/composer-root-update-plugin=~1.0 --no-update

2.Update the dependencies:

composer update

3.Upgrade Magento Open Source:

composer require magento/product-community-edition=2.4.0 --no-update

4.Apply updates:

composer update

5.Clean the Magento cache:

php bin/magento cache:clean

6.Update the database schema and data:

php bin/magento setup:upgrade

login admin fix: php bin/magento module:disable Magento_TwoFactorAuth

Ok, Thank for watching. See you