Project

General

Profile

Support #850

Upgrade Magento 1.9 From The Command Line

Added by Daniel Curtis over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
09/11/2016
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

This is a guide for upgrading Magento 1.9 from the command line on FreeBSD 10.

Before starting make a full backup of the magento directory and database.

  • Turn on maintenance mode:
    chmod -R 777 /usr/local/www/magento
    cd /usr/local/www/magento
    touch maintenance.flag
    
  • Clear any session data and cache storage:
    rm -rf var/cache/* var/session/*
    
  • Get the list of currently installed modules:
    chmod 550 ./mage
    sudo -u www ./mage mage-setup .
    sudo -u www ./mage config-set preferred_state stable
    sudo -u www ./mage list-installed
    
  • Start the upgrade:
    sudo -u www ./mage list-upgrades
    sudo -u www ./mage upgrade-all
    
  • Reindex magento and set the file permissions back to normal:
    sudo -u www php shell/indexer.php reindexall
    chmod -R 644 ./*
    find . -type d -exec chmod 755 {} \;
    
  • Remove the maintenance flag:
    rm -f maintenance.flag
    

Resources

#1

Updated by Daniel Curtis over 7 years ago

  • % Done changed from 0 to 100
  • Description updated (diff)
  • Status changed from New to Resolved
#2

Updated by Daniel Curtis over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF