Skip to content

Instantly share code, notes, and snippets.

@redesigned
Last active February 11, 2025 20:03
Show Gist options
  • Select an option

  • Save redesigned/6169208 to your computer and use it in GitHub Desktop.

Select an option

Save redesigned/6169208 to your computer and use it in GitHub Desktop.
Magneto Upgrading Commands
Reindex All:
php shell/indexer.php reindexall
Clear Caches:
rm -rf ./downloader/pearlib/cache/* ./downloader/pearlib/download/*
rm -rf ./var/cache/* ./var/session/* ./var/report/* ./var/log/*
rm -rf ./media/tmp/* ./app/code/core/Zend/Cache/* ./var/tmp/*
Fix Permissions:
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod o+w var var/.htaccess app/etc
chmod 550 ./lib/pear
chmod -R o+w media
chmod 550 ./mage
Upgrade or Install:
wget http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz
tar -zxvf magento-1.8.1.0.tar.gz
cp -rf magento/* magento/.htaccess .
rm -rf magento
rm magento-1.8.1.0.tar.gz
rm -rf ./downloader/pearlib/cache/* ./downloader/pearlib/download/* ./var/cache/* ./var/session/* ./var/report/* ./media/tmp/* ./app/code/core/Zend/Cache/*
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod o+w var var/.htaccess app/etc
chmod 550 ./lib/pear
chmod -R o+w media
chmod 550 ./mage
rm -rf ./downloader/pearlib/cache/* ./downloader/pearlib/download/*
rm -rf ./var/cache/* ./var/session/* ./var/report/* ./var/log/*
rm -rf ./media/tmp/* ./app/code/core/Zend/Cache/* ./var/tmp/*
@jarnail104
Copy link

I want to upgrade magento version 1.9.0.1 to 1.9.2.1 and of thats issue then it will be suffice to update only 1.9.1.0. Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment