How to Upgrade Magento 2.2.6 to 2.2.7
-
21-02-2021 - |
Frage
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
Lösung
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