In this blog post, Upgrading Magento from version 2.1 to 2.4.6 involves several steps, including updating the codebase, installing any necessary dependencies, migrating data, and adjusting configurations. Here’s an overview of the process.
The latest version features are:
Page BuilderDeclarative schemaAsynchronous and Bulk Web APIMulti-Source InventoryWYSIWYG Editor UpgradeCache Management ACLGoogle reCAPTCHA and Two Factor AuthenticationTable Of Contents
Step 1: Check Your RequirementsStep 2: Backup DataStep 3: Install ElasticsearchStep 4: Check Third-Party Extension CompatibilityStep 5: UpgradeStep 1: Check Your Requirements
Check whether your system will support the latest version or not by clicking the below link
Requirements
TechnologiesVersionComposer2.2OpenSearch2.5MySQL8.0RabbitMQ3.9Varnish7.1nginx1.22AWS MQ3.9.16AWS OpenSearch1.2Elasticsearch8.4, 7.17MariaDB10.6PHP8.1, 8.2Redis7.0Apache2.4AWS Aurora (MySQL)8.0AWS ElastiCache Redis6.2Step 2: Backup Data
Before upgrading to the latest version, You must make a backup of your website.
Step 3: Install Elasticsearch
The latest version needs Elasticsearch, you can install it by the following method if your server is a Linux server.
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-x.x-x86_64.rpm sudo rpm --install elasticsearch-x.x-x86_64.rpmIf your server is a Windows server, you can Download Elasticsearch.
Step 4: Check Third-Party Extension Compatibility
Once installed, check all your third-party extensions that will support the latest Magento version.
Step 5: Upgrade
Enabling the maintenance mode.
php bin/magento maintenance:enableThen run upgrade commands.
composer require magento/composer-root-update-plugin ~2.0 --no-update composer update php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento setup:di:compile php bin/magento maintenance:disableIf the site will not be visible, check for folder/file permissions and set the regarding file permissions as shown below.
chmod -R 777 pub varAnd run the commands for clearing the cache and reindexing.
php bin/magento cache:flush php bin/magento indexer:reindexThis Blog is Originally Published by 👉 www.amigoways.com/blog/how-to-upgrade-magento-2-1-to-magento-2-4-6
Tags: magento 2 upgrade guides, magento 2 upgrade tips, magento 2 version blog, magento upgrade blog