Magento Tutorial- How to Upgrade from Magento 1.7 to 1.9?
Recently, Magento has released Community Edition 1.9.0.1 with multiple improvements over previous versions. This version is a major release after 1.8.1. Let’s give a warm welcome to this new Magento CE version 1.9.0.1.
Sometimes, the Magento upgrade process can be tricky and complicated. To avoid installation hassles, we’ve mentioned some important steps to be followed for Magento CE 1.9.0.1 Upgrade.
We highly recommend you to try this Magento CE 1.9.0.1 upgrade process in a test environment first because your production website might stop working during the upgrade.
Step 1- Enable maintenance mode
First, you need to create a testing or a parallel development system which should be similar to your existing production system. Make sure you follow all the upgrade steps in this test system.
cd /magento_folder #for example: cd /var/www/magento touch maintenance.flag
STEP 2: Manually you can take backup of your database and directories.
Make sure you take the full backup of your store’s database and directories.
STEP 3: Commence the upgrade process
cd /magento_folder cd /magento_folder rm -rf var/cache/* var/session/* chmod -R 777 /magento_folder chmod 550 ./mage ./mage mage-setup . ./mage config-set preferred_state stable ./mage list-installed
When you use ‘./mage list-installed’ command in the command prompt, the Magento modules are listed in the same manner as shown below.
Installed package for channel 'community' : Installed package for channel 'community' : Lib_Js_Ext 1.8.1.0 stable Lib_LinLibertineFont 2.8.14.1 stable Lib_Js_TinyMCE 3.4.7.0 stable Lib_Js_Calendar 1.51.1.1 stable Lib_Phpseclib 1.5.0.0 stable Lib_ZF 1.11.1.0 stable Lib_Js_Prototype 1.8.0.0.4 stable Lib_ZF_Locale 1.11.1.0 stable Mage_All_Latest 1.8.1.0 stable Interface_Adminhtml_Default 1.8.1.0 stable Interface_Frontend_Default 1.8.1.0 stable Interface_Install_Default 1.8.1.0 stable Mage_Downloader 1.8.1.0 stable Mage_Centinel 1.8.1.0 stable Interface_Frontend_Base_Default 1.8.1.0 stable Phoenix_Moneybookers 1.3.2 stable Mage_Compiler 1.8.1.0 stable Magento_Mobile 1.8.1.0.23.1 stable Mage_Core_Adminhtml 1.8.1.0 stable Mage_Core_Modules 1.8.1.0 stable Lib_Varien 1.8.1.0 stable Lib_Google_Checkout 1.8.1.0 stable Lib_Js_Mage 1.8.1.0 stable Mage_Locale_en_US 1.8.1.0 stable Lib_Mage 1.8.1.0 stable
In case, modules are not listed, use the below given command to upgrade further:
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
And if your Magento modules are listed – use the following commands:
./mage list-upgrades ./mage upgrade-all
Once the upgrade process is done, you’ll see a list of modules – ‘already installed’, ’package upgraded’, make sure your permissions are set back to normal:
php shell/indexer.php reindexall chmod -R 644 ./* find . -type d -exec chmod 755 {} \; chmod 550 ./mage
STEP 4: Verification
Before migrating to 1.9.0.1 version, check the compatibility of all third party extensions on your website.
STEP 5: Go live with your website
Execute the following command to remove security flag.
cd /magento_folder rm -f maintenance.flag
Magento Upgrade Checklist
Want to upgrade your Magento store to 1.9?
We have devised a special Magento Upgrade Service Package to take care of such needs. Contact us today to get FREE Consultation!