Update Magento to latest 2.3.x

Thankfully, upgrading Magento within the same branch is very simple, compared to changing branches. Because some fixes and changes get shared between the 2.3 and 2.4 at the same time, there will be less changes to adapt to when you’re ready to make the big jump.

For now, I’ll be updating from Magento 2.3.5p2 to the 2.3.7 (which is the current latest version in the 2.3 branch at the time of creating this).

As of October 2020, these are my personal steps whenever I install or upgrade something new.

Make sure to switch to the “magento” user for this next section. You can switch users by using:

su magento

And then navigate to your Magento root directory with:

cd /var/www/html/

Step 1: Enable Maintenance Mode

bin/magento maintenance:enable

Step 2: Grab the 2.3.6 composer project

composer require magento/product-community-edition=2.3.7 --no-update

Step 3: Update composer

composer update

Step 4: Manually remove cached folders

rm -rf var/cache/* var/page_cache/* generated/code/* pub/static/frontend/*

Step 5: Flush Redis

redis-cli flushall

Step 6: Update Database Schema

bin/magento setup:upgrade

Step 7: Compile new codes changes

bin/magento setup:di:compile

Step 8: Redeploy Static Content (note to change your own locales)

bin/magento setup:static-content:deploy en_US en_GB -f

Step 9: Clean the cache

bin/magento cache:clean

Step 10: Flush the cache

bin/magento cache:flush

Step 11: Flush Redis (again)

redis-cli flushall

Step 12: Disable Maintenance Mode

bin/magento maintenance:disable

At this point, exit out of “magento” user back to the “superuser” by typing:

exit
 
  •  
Published On: January 12th, 2020 / Categories: Magento /

Subscribe To Receive The Latest News

Curabitur ac leo nunc. Vestibulum et mauris vel ante finibus maximus.

Thank you for your message. It has been sent.
There was an error trying to send your message. Please try again later.

Add notice about your Privacy Policy here.