问题
I need to upgrade my magento store form 1.7 to 1.9. I am very new to magento, I was just wondering what is the easiest way to upgrade without breaking my website.
Thank you
回答1:
Upgrade Roadmap for CE 1.9.0.1 from 1.7
- take a backup of current database and current 1.7 code.
- download latest magento from the http://www.magentocommerce.com/download
- remove all folders and files from your 1.7 code (but you should have backup somewhere) and place all folders and files from the 1.9.
- now from your 1.7 merge your following folders into the 1.9
• Community app/code/community
• Local app/code/local
• Media
• your theme or package (app/design/frontend/default/<your theme> or app/design/frontend/<your package>
)
• custom folders from Skin (both for adminhtml and frontend).
• copy your custom xml files from app/etc/modules/
to current app/etc/modules/
• any custom admin theme folder from adminhtml/default/yourtheme.
• copy your custom folders from adminhtml/default/default/
(1.7) to adminhtml/default/default/
(1.9).
• custom js files if any from app/js/
.
- now go to app/etc/local.xml.Edit database details there. put your database username and password and database name.
- now check the site. it's done.
回答2:
Upgrade directly:
Admin panel -> System -> Magento Connect -> Magento Connect Manager
Check for Upgrades
Mage_All_Latest -> select Upgrade to 1.9
Uupgrade via ssh :
Commands :
1: ./mage list-upgrades
2: ./mage config-set preferred_state stable
3: ./mage upgrade-all --force (if not working thenuse 4)
4: ./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
5: php -f ./index.php
For more info, check the below link:
https://astrio.net/blog/magento-upgrade-guide/
来源:https://stackoverflow.com/questions/28809425/how-to-upgrade-magento-from-1-7-to-1-9