Support #850
Upgrade Magento 1.9 From The Command Line
Status:
Closed
Priority:
Normal
Assignee:
Target version:
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¶
Updated by Daniel Curtis about 8 years ago
- % Done changed from 0 to 100
- Description updated (diff)
- Status changed from New to Resolved