How to upgrade my website to latest release magento-2.1.2 ?


Using composer,

Go to your system root using command line, run below command,

composer require "magento/product-community-edition:2.1.2" --no-update
composer update

After complete clean cache, run setup and deploy command

 php bin/magento cache:clean
 php bin/magento setup:upgrade
 php bin/magento setup:static-content:deploy
 php bin/magento indexer:reindex

For composer update (recommended) you can follow steps specified in this stackexchange thread which are also given below.

composer require magento/product-community-edition 2.1.2 --no-update
composer update
rm -rf var/di var/generation var/view_preprocessed var/cache var/page_cache
chown -R user:group .
chmod u+x bin/magento
bin/magento cache:flush
bin/magento setup:upgrade
bin/magento setup:static-content:deploy
bin/magento indexer:reindex
  • Does upgrading from older to newer version affects Data Loss? We have to take backup before Upgrading? – Magento2 Devloper Oct 13 '16 at 11:59
  • Backup should be taken every time before doing upgrades etc. In my case there was no data loss and site is working normally as it should. – Devtype Oct 13 '16 at 12:11
  • Ok..Thanx @ Devtype – Magento2 Devloper Oct 13 '16 at 12:12
  • Please don't post thanks comments, but instead upvote and accept the answer. So the threads don't get littered but can easily be read with on topic stuff :) – Devtype Oct 13 '16 at 12:27
  • i also need your help in this issue...magento.stackexchange.com/questions/137177/… – Magento2 Devloper Oct 14 '16 at 5:43

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.