Upgrade Magento 2.1.3 to latest 2.1.7
-
10-10-2020 - |
Question
My Magento version is 2.1.3 and i need to upgrade it to latest version which is currently 2.1.7
Should i upgrade to 2.1.7 directly or should i upgrade version by version like 2.1.3 to 2.1.4 then 2.1.4 to 2.1.5 likewise
will it create any errors if i directly upgrade to latest version?
Solution
Yes you can directly upgrade your magento version from 2.1.3 to 2.1.7 using composer.
It will not create any error if you upgrade it correctly.
The reason behind is If you have read release notes - http://devdocs.magento.com/guides/v2.1/release-notes/bk-release-notes.html Few releases have only security updates and few have only copyright date update in all files(2.1.6). so there is no major changes at directories and files level
Below are the commands how to upgrade it .
composer require magento/product-community-edition 2.1.7 --no-update
(pass required update version number)
composer update
rm -rf var/di var/generation
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
OTHER TIPS
You can upgrade your Magento version directly from 2.1.3 to 2.1.7 by below following command
composer require magento/product-community-edition 2.1.7 --no-update composer update
Remove below directory
/var/cache/* /var/page_cache/* /var/generation/*
Run below commands
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
You can also check from here : Devdocs
you can directly upgrade your Magento version from 2.1.3 to 2.1.7 using composer.
try like this
composer require magento/product-community-edition 2.1.7 --no-update
composer update
rm -rf var/di var/generation
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
for more reference
http://devdocs.magento.com/guides/v2.1/release-notes/bk-release-notes.html
You can directly upgrade from magento 2.1.3 to Magento 2.1.7.
There is no issue to directly upgrade from old to latest version.
Just edit your composer.json file,
"version": "2.1.3", To "version": "2.1.7",
and change other line,
"magento/product-community-edition": "2.1.3", To "magento/product-community-edition": "2.1.7",
Run command,
composer update
After successfully Upgrade,
Run all magento command,
php bin/magento indexer:reindex
Run upgrade and deploy command.
Clear cache.
You just need to run some commands to update your store to 2.1.7.
First, run this command:
composer require magento/product-community-edition 2.1.7 --no-update
Then update the composer
composer update
Now run these commands:
rm -rf var/di var/generation
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
Note: All these commands have to be run in the root directory of your store.