Sunday, August 21, 2011

Upgrading your Magento install to version 1.6

I have been hanging out a lot on the Magento 1.6 upgrade boards and I have been seeing all sorts of problems with upgrading.

Short of trying to upgrade via a new install and going through all the work of transferring your themes etc you can do it via ssh

The following worked for me: (Remember if you are running on a machine with low resources and you have many products the script will take longer to run)

rm -rf var/cache var/session
chmod 550 ./mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage list-installed
./mage list-upgrades
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
php shell/indexer.php reindexall

As always, your best resource for Magento information is the Magento site

You can access the 1.6 upgrade boards here

Twitter: @brentwpeterson on Twitter
Linkedin: http://www.linkedin.com/in/brentwpeterson
View My Magento Profile

13 comments:

  1. Make sure you attempt to go to your store after your update to allow the install scripts to begin. Depending on your server speed, it could take a few minutes.

    You might think your store broke but if you look at your MySQL process list, Magento is running the update scripts.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. rm -rf /var/cache session

    The line above will not achieve what you intend.

    It should be:

    rm -rf var/cache/* var/session/*

    ReplyDelete
  4. ./shell php indexer.php reindexall

    This is also wrong. It should be:

    php shell/indexer.php reindexall

    ReplyDelete
  5. It's quite surprising that it comes from Magento team member.

    ReplyDelete
  6. kyrylkov... yes sorry for the sloppy typing. I have corrected the post.

    ReplyDelete
  7. Hi I have 2 questions
    1. do we post the entire script above together or 1 by one.
    2. What directory do i have to be in. Do i just cd to the directory where everything is installed and run the script in there.

    ReplyDelete
  8. I'm running Magento 1.6.1.0 and would like to install Magento 1.6.2.0. But when i run the following install command it reinstall 1.6.1.0, which is not the latest. What do I need to change in the following command line to install Magento 1.6.2.0?

    ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force

    ReplyDelete
  9. @chetanm:

    1. One by one preferably
    2. you have to be in the directory where your magento shop resides. You should see a mage file (that is used in the script my ./mage) in that directory.

    ReplyDelete
  10. Online Casino - Kadangpintar
    Welcome 메리트 카지노 주소 to Kadangpintar Casino! The ultimate online casino resort 인카지노 destination. Play exciting 온카지노 online casino games and win real money!

    ReplyDelete
  11. For that purpose, we ask that you do not send confidential data such as Social Security, credit card, or account numbers to us through an unsecured e-mail. The Problem Gambling 바카라 사이트 Network of Ohio strives to generate consciousness, promote education, and be an advocate for quality therapy of drawback gamblers in the state of Ohio. There isn't any sector-specific EU laws in the subject of gambling providers.

    ReplyDelete