Magento Upgrade from 1.4.X.X to 1.5.X.X via SSH

Written by Sid Vel

Topics: Magento

Since Magento 1.5.0.0 the SSH upgrade command has been changed to ./mage instead of ./pear. If you have used ./pear upgrade-all in the past, you will now have to use the ./mage version. I was upgrading from Magento 1.4.2.1 to Magento 1.5.1.0. I’m using the Community Edition.

For ./mage to work you need to CHMOD it to have sufficient permissions. Then you need to add the newer 1.5 version of Magento pear channels. The following worked for me on the Magento 1.4.2.1 install. As always please do not try this on a production site. Create a staging version of your Magento store before you try upgrading. Also, remember to backup your database. One more thing: please remember to point local.xml to the new database and not the production one. :)

./mage channel-add connect20.magentocommerce.com/community 
./mage channel-add connect20.magentocommerce.com/core
./mage sync
./mage upgrade-all --force

1 Comment Comments For This Post I'd Love to Hear Yours!

  1. HEC Store says:

    Thanks for this – I couldn’t understand why this wasn’t working until I saw your post!

Leave a Comment Here's Your Chance to Be Heard!