WebCitz Blog


Upgrade to Magento 1.9.1.0 via SSH

This Magento upgrade tutorial will help guide you through the process of updating / upgrading your Magento installation from 1.4+ to 1.9.1.0. which was released on Nov 24, 2014. For the purpose of this tutorial, we will assume you have access to SSH on your hosting account. You should always create a backup of your entire website/database before proceeding with an upgrade and never 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.

  1. Change to your Magento installation directory:
    (swap “username” below for your account’s username, or change the entire path to match your absolute URL)

    cd /home/username/public_html
  2. Download Magento 1.9.1.0 from MagentoCommerce.com:
    wget http://www.magentocommerce.com/downloads/assets/1.9.1.0/magento-1.9.1.0.tar.gz
  3. Extract the archive:
    tar -zxvf magento-1.9.1.0.tar.gz
  4. Change to the directory created during extraction:
    cd magento
  5. Turn off file replacement prompts:
    unalias cp
  6. Copy the Magento 1.9.1.0 files over your existing files:
    cp -rf * /home/username/public_html
  7. Change back to your Magento installation directory:
    cd ../
  8. Remove the empty folder
    rm -rf magento
  9. Optional: CHMOD all files to 644:
    find -type f -name ‘*.*’ -exec chmod 644 {} \;
    Optional: CHMOD all folders to 755:
    find -type d -exec chmod 755 {} \;
    Optional: CHOWN all files/folders:
    chown -R username:username *