Upgrade to Magento Community 1.9 (by SSH)
Magento Community Edition 1.9.0.1 has ben released. It contains multiple improvements over older versions. 1.9.0.1 is a major release , so it’s very important not to miss it. In this post we will show you how to upgrade from previous Magento version to the new one. Don’t forget to try Magento CE 1.9.0.1 upgrade in a test environment. The operation is not risky, but there is always a chance to break something.
1. Turn on maintenance mode. Create a testing development system similar to your existing production system.
1 2 3 |
cd /magento_folder #for example: cd /var/www/magento touch maintenance.flag |
2. Backup your directories and database. Make the full backup, as it can save you in case of any troubles.
3. Start the upgrade.
1 2 3 4 5 6 7 8 |
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 |
By using ‘./mage list-installed’ in the command prompt you get Magento modules listed as in the example:
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
If something went wrong and Magento modules are not listed, you can use this command:
1 |
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force |
If they are listed, use
1 |
./mage list-upgrades & ./mage upgrade-all |
If everything is OK, a list of modules appears: ‘already installed’, ’package upgraded’. Don’t forget to set back permissions to normal:
1 2 3 4 |
php shell/indexer.php reindexall chmod -R 644 ./* find . -type d -exec chmod 755 {} \; chmod 550 ./mage |
4. Verification. Make sure that all third party extensions are compatible with your web store. After this you can upgrade to 1.9.0.1.
5. Remove security flag. Use the hereinafter mentioned command:
1 2 |
cd /magento_folder rm -f maintenance.flag |