This Magento upgrade tutorial will help guide you through the process of updating / upgrading your Magento installation from 1.4+ to 1.7.0, which was released on April 24, 2012. For the purpose of this tutorial, we will assume you have access to SSH on your hosting account. Please create a backup of your entire website/database before proceeding and do not perform these steps on a live store. Please be sure to obtain updated files from the authors of any Magento extensions you have installed on your website.
- Change to your Magento installation directory:
cd /home/username/public_html - Download Magento 1.7.0.0 from MagentoCommerce.com:
wget http://www.magentocommerce.com/downloads/assets/1.7.0.0/magento-1.7.0.0.tar.gz - Extract the archive:
tar -zxvf magento-1.7.0.0.tar.gz - Change to the directory created during extraction:
cd magento - Turn off file replacement prompts:
unalias cp - Copy the Magento 1.7.0.0 files over your existing files:
cp -rf * /home/username/public_html - Change back to your Magento installation directory:
cd ../ - Remove the empty folder
rm -rf magento - Optional: CHMOD all PHP files to 644:
find -type f -name ‘*.php’ -exec chmod 644 {} \;
Optional: CHMOD all folders to 755:
find -type d -exec chmod 755 {} \;
