问题
I am currently using Magento community edition, version 1.7.0.0, and as recommended by Magento due to a major security loophole fix, I want to upgrade my application to use latest version, 1.7.0.2.
What is the best way to upgrade magento version?
I know there are ways like command-line upgrade and using Magento Connect Manager, but not sure which and how to use.
thanks
回答1:
The easiest way is to go to the Magento Connect Manager and press the Check for Upgrades Button.
Then you can see updates for all versions.
If you want to Update all packages then take Mage_All_Latest
I think when you are in the same Major release the update should work without any problems.
If you get some trouble with dependencies. You can do an upgrade with your console:
./mage upgrade-all --force
After using force you should check all your functions.
回答2:
Follow the below steps:
- Download the latest magento version(say 1.9) from http://www.magentocommerce.com/download
- Backup every thing
- Now remove all files and folder from your site code(mine say 1.7) and put in a new folder say ‘x’ folder.Put maintenance flag and place all magento files from latest magento download folder.
Now from magento 1.7( ‘x’ folder) merge the following custom folders into 1.9
app/code/local app/code/community Media Your theme or package (app/design/frontend/default/<your theme> or app/design/frontend/<your package>) Folders from Skin (both for adminhtml and frontend). Copy app/etc/modules/ to current app/etc/modules/ from ‘x’ folder Custom admin theme folder from adminhtml/default/yourtheme. copy your custom folders from adminhtml/default/default/ (‘x’ folder) to adminhtml/default/default/ (1.9). Custom js files from app/js/. from ‘x’ folder
Now go to app/etc/local.xml of 1.9 and put your database and password details
- Remove maintenance.flag file and run your site on browser, and you are done
来源:https://stackoverflow.com/questions/11520618/upgrade-magento-to-latest-version