0

Currently my website running on Magento 2.2.5.

I want to upgrade it with current version 2.4.0.

Please anyone suggests me how can I update it without getting any issues.

wihtout lossing customized option in my Magento 2.2.5

asked Oct 16, 2020 at 12:22
2
  • 1
    first all backup your database and magento file. after try this following way :- magento.stackexchange.com/a/319194/85907 Commented Oct 16, 2020 at 17:25
  • Thank you Mohit Patel Commented Oct 20, 2020 at 6:28

1 Answer 1

1

Before start magento upgrade take full backup of site then you need to check magento system requirements as per the version which link is given below and update first if required Like :- (php, composer, mysql, elastic search) version etc then start work on it.

https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/system-requirements.html

You can upgrade magento version using command line for that you need to follow some steps which i have given below.

  1. First Enable maintenance mode using a command.
    ==> php bin/magento maintenance:enable

  2. Take backup of you composer.json file using command.
    ==> cp composer.json composer.json.bak

  3. Update composer.json file
    ==> composer require-commerce magento/product-community-edition 2.4.0 --no-update

  4. Composer update
    ==> composer update

  5. Please run below commands one by one.
    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

  6. Disable Maintainance Mode.
    ==> php bin/magento maintenance:disable

answered Jan 25, 2023 at 10:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.