Disclaimer: I’ve upgraded Magento CE 1 using this process with no issues many times. I can not confirm this process will work with Magento CE 2. As always, BACKUP EVERYTHING FIRST.
- Disable Cache
Navigate to System > Cache Management and disable all. - Turn on Maintenance Mode
touch maintenance.flag
- Clear /var (need to replace htaccess file if you’re blocking access)
rm -rf var
mkdir var - Backup Files & Database
- Start the Upgrade
chmod -R 777 ./*
chmod 550 ./mage
./mage mage-setup .
./mage config-set preferred_state stable
./mage list-installed
./mage list-upgrades
./mage upgrade-all - Clean Up
php shell/indexer.php reindexall
See: https://magento.stackexchange.com/questions/68627/file-permissions-changed-after-applying-patch-403-forbidden-error
rm -rf maintenance.flag - Verify and Upgrade Database by Opening the Site
Don’t forget to re-anable cache management.