Upgrading magento should be quite straight forward, but when it comes to big websites with monstrous databases its kinda tricky.
Anyway, there are few ways to upgrade a magento instance, for example you can download the new package, upload it and override your files and that should do the database upgrade once you open the website for the first time, but I don’t like that.
Another good thing is Magento Connect, Yep. the downloader rocks but I still do not feel good about running long php scripts over http session. specially if you have a big site with lots of extensions and etc.
Last and the best in my opinion is using mage script. its in home directory of your magento installation.
To upgrade lets do below:
1. Lets clean up the database logs. that will ease the upgrade. you can do it by truncating the logs tables. or you can use the log.php script within the shell folder. although thats slow, but since I do that frequently my logs shouldnt be more than few hundred megabytes. so:
php shell/log.php clean
it may take some time depending on the logs size.
2. then login to the site and disable all caches. I don’t want them to come along as a bump. also clear all caches.
3. now that we are done with the admin panel we can make a maintenance.flag file in the root directory to put the site in maintenance mode.
4. Lets disable magento compiler too.
php shell/compiler.php clear
5. Run following commands:
chmod +x mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
php shell/indexer.php reindexall
rm -rf downloader/.cache/ var/cache/
6. remove the maintenance.flag.
7. re-enable the cache and compiler and you should be good to go.
Incoming search terms:
- https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1822 TWVU3fkCdS1hhFWtr9SqkNfmruAIb4CjT7c2T7zOeVw_-5lQ19ad4Q0VCDwUzMgu 8c84f20cd9b9c1228678630e1321c9bf92d353fd&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme
- https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1885 H4q1JfsPjKYAIJKc3kCnZn8noCIkEfwddE8HCLyd9nTycn1ppd6-PynRzQXdofK3 3aeb40c3e7da2db5d07f5763f47a922636ec05cc&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme