Project

General

Profile

Support #850

Updated by Daniel Curtis over 7 years ago

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: 
 <pre> 
 chmod -R 777 /usr/local/www/magento 
 cd /usr/local/www/magento 
 touch maintenance.flag 
 </pre> 

 * Clear any session data and cache storage: 
 <pre> 
 rm -rf var/cache/* var/session/* 
 </pre> 

 * Get the list of currently installed modules: 
 <pre> 
 chmod 550 ./mage 
 sudo -u www ./mage mage-setup . 
 sudo -u www ./mage config-set preferred_state stable 
 sudo -u www ./mage list-installed 
 </pre> 

 * Start the upgrade: 
 <pre> 
 sudo -u www ./mage list-upgrades 
 sudo -u www ./mage upgrade-all 
 </pre> 

 * Reindex magento and set the file permissions back to normal: 
 <pre> 
 sudo -u www php shell/indexer.php reindexall 
 chmod -R 644 ./* 
 find . -type d -exec chmod 755 {} \; 
 </pre> 

 * Remove the maintenance flag: 
 <pre> 
 rm -f maintenance.flag 
 </pre> 

 h2. Resources 

 * https://firebearstudio.com/blog/upgrade-to-magento-community-1-9-by-ssh.html

Back