1

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

Teja Bhagavan Kollepara
3,8275 gold badges33 silver badges69 bronze badges
asked Oct 13, 2016 at 11:47
4

2 Answers 2

1

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
answered Oct 13, 2016 at 11:55
2
  • possible in local machine? Commented Oct 13, 2016 at 11:57
  • yes you can first try with local machine. Commented Oct 13, 2016 at 12:01
1

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
answered Oct 13, 2016 at 11:54
5
  • Does upgrading from older to newer version affects Data Loss? We have to take backup before Upgrading? Commented Oct 13, 2016 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. Commented Oct 13, 2016 at 12:11
  • Ok..Thanx @ Devtype Commented Oct 13, 2016 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 :) Commented Oct 13, 2016 at 12:27
  • i also need your help in this issue...magento.stackexchange.com/questions/137177/… Commented Oct 14, 2016 at 5:43

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.