I use Magento 2.2.6 with a theme. Arround 2200 products. I want to upgrade the store to 2.2.7.

Can someone redirect me to steps to upgrade to 2.2.7 from 2.2.6?

Thanks, Niraj

  • What you have tried so far ? – Pawan Mar 3 at 8:09
  • I am a non-technical person. I am trying to find steps to upgrade but not getting some legit info. – Niraj Nagar Mar 3 at 8:21
  • In one of the help, they asked to do it from admin> upgrade info. when I tried to add private key, it is showing error. So unable to do it from admin too. – Niraj Nagar Mar 3 at 8:23

I you are attempting to the upgrade directly on your Live website , i won't recommend it as if upgrade fails you won't be able to recover the website on your own as you are a non-technical person .

If you still up for it here is steps you need to do

1) Backup your website (both source code and DB).

Depending upon your hosting you would have to Create a SSH account and connect via PUTTY

2) You should put your store in maintenance mode while upgrading. To enable maintenance mode: After connecting using PUTTY , navigate to magento root directory and run

php bin/magento maintenance:enable

3) Run command to add new version of magento 2 your composer, I am assuming you are CE edition and your hosting comes with composer installed .

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

4) You would be asked to put in credentials (To get these credentials check this) , Put in your private and public key from your account

5)Now time to remove cache, generation ,run upgrade and indexing. Run the following command line at root folder:

rm -rf var/cache/*
rm -rf var/page_cache/*
rm -rf generation/*

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento maintenance:disable

6): Check the current Magento 2’s version Next, you can check the Magento 2’s version by running the command.

php bin/magento --version
  • 1
    i just created the staging version. – Niraj Nagar Mar 3 at 8:42
  • Great then you are good to try the above steps @NirajNagar – Vishwas Bhatnagar Mar 3 at 8:43
  • i executed composer require magento/product-community-edition 2.2.7 --no-update ---- on putty it is asking for user name. Which username and password? – Niraj Nagar Mar 3 at 8:45
  • You can get that from magento.com account – Vishwas Bhatnagar Mar 3 at 8:46
  • 1
    php bin/magento s:s:d -f; --- php bin/magento c:f; --- used these two command provided by the theme company and all working now. thanks for all the guidance. – Niraj Nagar Mar 3 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.