{"id":219,"date":"2022-11-14T12:54:51","date_gmt":"2022-11-14T12:54:51","guid":{"rendered":"http:\/\/thekraftors.com\/blog\/?p=219"},"modified":"2024-07-25T18:48:13","modified_gmt":"2024-07-25T13:18:13","slug":"how-to-upgrade-magento-2","status":"publish","type":"post","link":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/","title":{"rendered":"How to upgrade Magento 2?"},"content":{"rendered":"\n<p><strong>How to Upgrade Magento 2<\/strong><\/p>\n\n\n\n<p>Enhancing\u00a0 Magento 2\u00a0 is vital for maintaining the best performance, security, and access to enhanced features. This guide will lead you through the necessary steps to upgrade your Magento 2 to Magento 2.4. 7 store safely.<\/p>\n\n\n\n<p><strong>1. Make a to Backup<\/strong> <strong>upgrade Magento 2<\/strong> <\/p>\n\n\n\n<p>&nbsp;&nbsp;Creating a backup before starting the upgrade process is crucial to protect against data loss.<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Via Command Line:<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Switch to the Magento file system owner.<\/p>\n\n\n\n<p>Use the following command to back up your system:<\/p>\n\n\n\n<p>Terminal <\/p>\n\n\n\n<p><code>magento setup:backup [\u2013code] [\u2013media] [\u2013db]<\/code><\/p>\n\n\n\n<p><strong>Command Options:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u2013code<\/strong>: Backs up the entire Magento system, excluding the <code>var <\/code>and<code> pub\/static<\/code> folders.<\/li>\n\n\n\n<li><strong>\u2013media<\/strong>: Backs up the <code>pub\/media<\/code> folder.<\/li>\n\n\n\n<li><strong>\u2013db<\/strong>: Backs up the Magento 2 database.<\/li>\n<\/ul>\n\n\n\n<p><strong>Via Admin Panel:<\/strong><\/p>\n\n\n\n<p>To access the Admin panel<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the&nbsp; Admin panel.<\/li>\n\n\n\n<li>Go to Backups under System &gt; Tools.<\/li>\n\n\n\n<li>Decide on the type of backup<\/li>\n\n\n\n<li>Navigate to System &gt; Tools &gt; Backups.<\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>System Backup: Creates a complete copy of the database and file system. Optionally includes the media folder.<\/li>\n\n\n\n<li>Database and Media Backup: Creates a full copy of the database and media folder.<\/li>\n\n\n\n<li>Database Backup: Only creates a copy of the database.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Manual Backup:<\/strong><\/h2>\n\n\n\n<p><strong>Backup Files:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access your hosting account\u2019s file structure.<\/li>\n\n\n\n<li>Navigate to the \/public_html directory and download the directory or copy it to another hosting folder.<\/li>\n<\/ul>\n\n\n\n<p><strong>Create a MySQL Database Backup:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to cPanel and select phpMyAdmin.<\/li>\n\n\n\n<li>Select the database used for your website.<\/li>\n\n\n\n<li>Export the database as an SQL file by clicking the \u201cExport\u201d button and choosing the \u201cquick\u201d method.<\/li>\n<\/ul>\n\n\n\n<p><strong>.&nbsp; Set to Developer Mode<\/strong><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;Developer mode is used for customization or development purposes, such as installing extensions.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>&nbsp;1. Check Current Mode:<\/strong><\/h5>\n\n\n\n<p>Input&nbsp; the following command:<\/p>\n\n\n\n<p>Terminal<\/p>\n\n\n\n<p><code>php bin\/magento deploy:mode:show<\/code><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>&nbsp;2. Enable Developer Mode:<\/strong><\/h5>\n\n\n\n<p>Run the following command:<\/p>\n\n\n\n<p>Terminal<\/p>\n\n\n\n<p><code>php bin\/magento deploy:mode:set developer<\/code><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>3. Composer Update<\/strong><\/h5>\n\n\n\n<p><strong>Upgrade Magento using Composer:<\/strong><\/p>\n\n\n\n<p>Run the following command:<\/p>\n\n\n\n<p>Terminal<\/p>\n\n\n\n<p><code>composer require magento\/product-community-edition 2.4.5-p1 --no-update<\/code><\/p>\n\n\n\n<p>Handle potential plugin conflicts by running:<\/p>\n\n\n\n<p>Terminal<\/p>\n\n\n\n<p><code>composer update --no-plugins<\/code><\/p>\n\n\n\n<p>Resolve dependencies issues by running:<\/p>\n\n\n\n<p>Terminal<\/p>\n\n\n\n<p><code>composer update --ignore-platform-reqs<\/code><\/p>\n\n\n\n<p>If you encounter conflicts, use:<\/p>\n\n\n\n<p>Terminal<\/p>\n\n\n\n<p><code>composer update --with-all-dependencies<\/code><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>4. System Prerequisites<\/strong><\/h5>\n\n\n\n<p>Confirm that your system fulfills the specific requirements tested by Adobe.&nbsp;<\/p>\n\n\n\n<p>For instance, Magento 2.4.3 has undergone extensive testing with MariaDB 10.4. It is advisable to upgrade to MariaDB 10.4 before moving to Magento 2.4.3.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>5. Set to Production Mode<\/strong> to <strong>upgrade Magento 2<\/strong><\/h5>\n\n\n\n<p>Production mode is the main regime for live stores.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>URLs for static view files are generated once the files are not cached\/rendered.<\/li>\n\n\n\n<li>Errors are recorded in the file system, and not visible to customers.<\/li>\n<\/ol>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>To ensure security, performance, and access to the latest features, upgrading Magento 2 is essential. By following these guidelines, store owners can easily upgrade to the newest version of Magento 2, thereby protecting their eCommerce sites from attacks and improving overall performance.<br>If you have a similar requirement, <a href=\"https:\/\/thekraftors.com\/ecommerce\">Magento<\/a>, and if you have any queries, comment down.<br><br><strong>At&nbsp;<a href=\"https:\/\/www.linkedin.com\/company\/kraftors-web-solutions-pvt.-ltd.\/mycompany\/\">Kraftors<\/a>, we offer e-commerce development services for Magento 1 and Magento 2 . We specialize in Magento 2 website development, API customization, performance improvement<\/strong>,&nbsp;<strong>deployment, Migration services.<br><\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-large\"><img decoding=\"async\" width=\"1024\" height=\"21\" src=\"http:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/image-1-1024x21.png\" alt=\"\" class=\"wp-image-220\" srcset=\"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/image-1-1024x21.png 1024w, https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/image-1-300x6.png 300w, https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/image-1-768x16.png 768w, https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/image-1.png 1118w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>How to Upgrade Magento 2 Enhancing\u00a0 Magento 2\u00a0 is vital for maintaining the best performance, security, and access to enhanced features. This guide will lead you through the necessary steps&hellip;<\/p>\n","protected":false},"author":4,"featured_media":798,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-219","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to upgrade Magento 2? - The Kraftors<\/title>\n<meta name=\"description\" content=\"Upgrade to Latest Magento 2 Version (2.4.7) with easy-to-follow steps and ensure enhanced performance. security and features.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to upgrade Magento 2? - The Kraftors\" \/>\n<meta property=\"og:description\" content=\"Upgrade to Latest Magento 2 Version (2.4.7) with easy-to-follow steps and ensure enhanced performance. security and features.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"The Kraftors\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/thekraftors\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-14T12:54:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-25T13:18:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/UPGRADE-MAGENTO-VERSION-1024x576.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pragati verma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@the_kraftors\" \/>\n<meta name=\"twitter:site\" content=\"@the_kraftors\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pragati verma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/\",\"url\":\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/\",\"name\":\"How to upgrade Magento 2? - The Kraftors\",\"isPartOf\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/UPGRADE-MAGENTO-VERSION.png\",\"datePublished\":\"2022-11-14T12:54:51+00:00\",\"dateModified\":\"2024-07-25T13:18:13+00:00\",\"author\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/08bcd2e9fc4c8aeea6652ad7711abb98\"},\"description\":\"Upgrade to Latest Magento 2 Version (2.4.7) with easy-to-follow steps and ensure enhanced performance. security and features.\",\"breadcrumb\":{\"@id\":\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#primaryimage\",\"url\":\"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/UPGRADE-MAGENTO-VERSION.png\",\"contentUrl\":\"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/UPGRADE-MAGENTO-VERSION.png\",\"width\":2240,\"height\":1260,\"caption\":\"Upgrade Magento 2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/thekraftors.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to upgrade Magento 2?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/thekraftors.com\/blog\/#website\",\"url\":\"https:\/\/thekraftors.com\/blog\/\",\"name\":\"The Kraftors\",\"description\":\"AI | AR | eCommerce | Devops | Magento | Flutter\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/thekraftors.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/08bcd2e9fc4c8aeea6652ad7711abb98\",\"name\":\"Pragati verma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9a210a410c65d19479c9b0a2ba082fee3315073bc3f773d3d6f709fd4d21bcd7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9a210a410c65d19479c9b0a2ba082fee3315073bc3f773d3d6f709fd4d21bcd7?s=96&d=mm&r=g\",\"caption\":\"Pragati verma\"},\"url\":\"https:\/\/thekraftors.com\/blog\/author\/pragati\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to upgrade Magento 2? - The Kraftors","description":"Upgrade to Latest Magento 2 Version (2.4.7) with easy-to-follow steps and ensure enhanced performance. security and features.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"How to upgrade Magento 2? - The Kraftors","og_description":"Upgrade to Latest Magento 2 Version (2.4.7) with easy-to-follow steps and ensure enhanced performance. security and features.","og_url":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/","og_site_name":"The Kraftors","article_publisher":"https:\/\/www.facebook.com\/thekraftors\/","article_published_time":"2022-11-14T12:54:51+00:00","article_modified_time":"2024-07-25T13:18:13+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/UPGRADE-MAGENTO-VERSION-1024x576.png","type":"image\/png"}],"author":"Pragati verma","twitter_card":"summary_large_image","twitter_creator":"@the_kraftors","twitter_site":"@the_kraftors","twitter_misc":{"Written by":"Pragati verma","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/","url":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/","name":"How to upgrade Magento 2? - The Kraftors","isPartOf":{"@id":"https:\/\/thekraftors.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/UPGRADE-MAGENTO-VERSION.png","datePublished":"2022-11-14T12:54:51+00:00","dateModified":"2024-07-25T13:18:13+00:00","author":{"@id":"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/08bcd2e9fc4c8aeea6652ad7711abb98"},"description":"Upgrade to Latest Magento 2 Version (2.4.7) with easy-to-follow steps and ensure enhanced performance. security and features.","breadcrumb":{"@id":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#primaryimage","url":"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/UPGRADE-MAGENTO-VERSION.png","contentUrl":"https:\/\/thekraftors.com\/blog\/wp-content\/uploads\/2022\/11\/UPGRADE-MAGENTO-VERSION.png","width":2240,"height":1260,"caption":"Upgrade Magento 2"},{"@type":"BreadcrumbList","@id":"https:\/\/thekraftors.com\/blog\/how-to-upgrade-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thekraftors.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to upgrade Magento 2?"}]},{"@type":"WebSite","@id":"https:\/\/thekraftors.com\/blog\/#website","url":"https:\/\/thekraftors.com\/blog\/","name":"The Kraftors","description":"AI | AR | eCommerce | Devops | Magento | Flutter","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thekraftors.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/08bcd2e9fc4c8aeea6652ad7711abb98","name":"Pragati verma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thekraftors.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9a210a410c65d19479c9b0a2ba082fee3315073bc3f773d3d6f709fd4d21bcd7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9a210a410c65d19479c9b0a2ba082fee3315073bc3f773d3d6f709fd4d21bcd7?s=96&d=mm&r=g","caption":"Pragati verma"},"url":"https:\/\/thekraftors.com\/blog\/author\/pragati\/"}]}},"_links":{"self":[{"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":9,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":808,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions\/808"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/media\/798"}],"wp:attachment":[{"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thekraftors.com\/blog\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}