{"id":399,"date":"2022-03-31T11:07:30","date_gmt":"2022-03-31T04:07:30","guid":{"rendered":"https:\/\/magerubik.com\/blog\/?p=399"},"modified":"2022-04-05T09:31:18","modified_gmt":"2022-04-05T02:31:18","slug":"move-magento-2-website-to-a-new-service","status":"publish","type":"post","link":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/","title":{"rendered":"move Magento 2 website to a new service"},"content":{"rendered":"\n<div class=\"magerubik-quote\">\n\t<p>The client can request to change hosting service at any time when they feel no longer satisfied with the current service. So in this article, we will learn how to move Magento 2 website to a new service.<\/p>\n<\/div>\n<h2 class=\"h3\"><strong>1. Export Database<\/strong><\/h2>\n<p>You can login to login to phpMyAdmin do it.<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdn2.magerubik.com\/media\/knowledge\/magento-export-database.jpg\" alt=\"Magento 2 export database\"><\/figure>\t\n<p>Or connect to your Magento directory with SSH then run the below command to do it.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mysql -p -u username database_name > magento_backup.sql<\/pre>\n\n\n\n<h2 class=\"h3\"><strong>2. Make zip file from Magento folder<\/strong><\/h2>\n<p>Connect to your Magento directory with SSH then run the below command<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">zip -r magento_back.zip *<\/pre>\n\n\n\n<h2 class=\"h3\"><strong>3. move website to new service<\/strong><\/h2>\n<p class=\"h3\"><strong>upload file zip and database to new service.<\/strong><\/p>\n<p>Connect to new host with SSH then run the below command to unzip file.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">unzip magento_back.zip<\/pre>\n\n\n\n<p class=\"h3\"><strong>Import database<\/strong><\/p>\n<p>Then you login to phpMyAdmin to import database.<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdn2.magerubik.com\/media\/knowledge\/magento-import-database.jpg\" alt=\"Magento 2 import database\"\/><\/figure>\n<p>Or run the below command<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mysql -p -u username database_name &lt; magento_backup.sql<\/pre>\n\n\n\n<p class=\"h3\"><strong>Update new info<\/strong><\/p>\n<p>Find <span class=\"code\">app\/etc\/env.php<\/span> file then make changes related to the information of the new database that you just created on your domain (dbname, username, password, downloadable_domains)<\/p>\n<p class=\"simple-note\">If you have change domain you need go to phpMyAdmin on core_config_data table change value <span class=\"code\">web\/unsecure\/base_url<\/span>.<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdn2.magerubik.com\/media\/knowledge\/magento-change-base-url.jpg\" alt=\"Magento 2 change base url\"\/><\/figure>\n<p>Or run the below command<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php bin\/magento config:set web\/unsecure\/base_url 'http:\/\/yourdomain'<\/pre>\n\n\n\n<p class=\"simple-note\">If you don&#8217;t change the domain you need to go to manage domain update IP address and then wait for it to work.<\/p>\n<blockquote class=\"wp-block-quote\">\n\t<p>That&#8217;s all it takes to migrate your site to a new server. Hope can help you move Magento 2 website to a new service. <a href=\"https:\/\/magerubik.com\/contact\" title=\"Contact Magerubik\">Contact us<\/a> if you face any problems during the installation process.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The client can request to change hosting service at any time when they feel no longer satisfied with the current<\/p>\n","protected":false},"author":1,"featured_media":407,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-knowledge"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>move Magento 2 website to a new service | MageRubik<\/title>\n<meta name=\"description\" content=\"Move Magento 2 website- 1. Export Database - 2. Make zip file from Magento folder - 3. move website to new service\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"move Magento 2 website to a new service | MageRubik\" \/>\n<meta property=\"og:description\" content=\"Move Magento 2 website- 1. Export Database - 2. Make zip file from Magento folder - 3. move website to new service\" \/>\n<meta property=\"og:url\" content=\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/\" \/>\n<meta property=\"og:site_name\" content=\"MageRubik\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/magerubik\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/magerubik\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-31T04:07:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-05T02:31:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"445\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hilary howard\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/www.twitter.com\/magerubik\" \/>\n<meta name=\"twitter:site\" content=\"@magerubik\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hilary howard\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/\"},\"author\":{\"name\":\"Hilary howard\",\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8\"},\"headline\":\"move Magento 2 website to a new service\",\"datePublished\":\"2022-03-31T04:07:30+00:00\",\"dateModified\":\"2022-04-05T02:31:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/\"},\"wordCount\":246,\"publisher\":{\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8\"},\"image\":{\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg\",\"articleSection\":[\"Magento 2 knowledge\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/\",\"url\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/\",\"name\":\"move Magento 2 website to a new service | MageRubik\",\"isPartOf\":{\"@id\":\"https:\/\/magerubik.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg\",\"datePublished\":\"2022-03-31T04:07:30+00:00\",\"dateModified\":\"2022-04-05T02:31:18+00:00\",\"description\":\"Move Magento 2 website- 1. Export Database - 2. Make zip file from Magento folder - 3. move website to new service\",\"breadcrumb\":{\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#primaryimage\",\"url\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg\",\"contentUrl\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg\",\"width\":800,\"height\":445,\"caption\":\"Magento 2 move website\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Magerubik blog site\",\"item\":\"https:\/\/magerubik.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"move Magento 2 website to a new service\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/magerubik.com\/blog\/#website\",\"url\":\"https:\/\/magerubik.com\/blog\/\",\"name\":\"Magerubik\",\"description\":\"MageRubik blog site\",\"publisher\":{\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8\"},\"alternateName\":\"Magento 2 Extension\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/magerubik.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8\",\"name\":\"Hilary howard\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magerubik-logo.png\",\"contentUrl\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magerubik-logo.png\",\"width\":265,\"height\":90,\"caption\":\"Hilary howard\"},\"logo\":{\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/localhost\/blog\",\"https:\/\/www.facebook.com\/magerubik\",\"https:\/\/www.instagram.com\/magerubik\",\"https:\/\/www.linkedin.com\/magerubik\",\"https:\/\/www.pinterest.com\/magerubik\",\"https:\/\/twitter.com\/https:\/\/www.twitter.com\/magerubik\",\"https:\/\/www.myspace.com\/magerubik\",\"https:\/\/www.youtube.com\/magerubik\",\"https:\/\/www.soundcloud.com\/magerubik\",\"https:\/\/www.tumblr.com\/magerubik\",\"https:\/\/www.wikipedia.com\/magerubik\"],\"url\":\"https:\/\/magerubik.com\/blog\/author\/hilary-howard\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"move Magento 2 website to a new service | MageRubik","description":"Move Magento 2 website- 1. Export Database - 2. Make zip file from Magento folder - 3. move website to new service","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:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/","og_locale":"en_US","og_type":"article","og_title":"move Magento 2 website to a new service | MageRubik","og_description":"Move Magento 2 website- 1. Export Database - 2. Make zip file from Magento folder - 3. move website to new service","og_url":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/","og_site_name":"MageRubik","article_publisher":"https:\/\/www.facebook.com\/magerubik","article_author":"https:\/\/www.facebook.com\/magerubik","article_published_time":"2022-03-31T04:07:30+00:00","article_modified_time":"2022-04-05T02:31:18+00:00","og_image":[{"width":800,"height":445,"url":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg","type":"image\/jpeg"}],"author":"Hilary howard","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/www.twitter.com\/magerubik","twitter_site":"@magerubik","twitter_misc":{"Written by":"Hilary howard","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#article","isPartOf":{"@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/"},"author":{"name":"Hilary howard","@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8"},"headline":"move Magento 2 website to a new service","datePublished":"2022-03-31T04:07:30+00:00","dateModified":"2022-04-05T02:31:18+00:00","mainEntityOfPage":{"@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/"},"wordCount":246,"publisher":{"@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8"},"image":{"@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#primaryimage"},"thumbnailUrl":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg","articleSection":["Magento 2 knowledge"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/","url":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/","name":"move Magento 2 website to a new service | MageRubik","isPartOf":{"@id":"https:\/\/magerubik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#primaryimage"},"image":{"@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#primaryimage"},"thumbnailUrl":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg","datePublished":"2022-03-31T04:07:30+00:00","dateModified":"2022-04-05T02:31:18+00:00","description":"Move Magento 2 website- 1. Export Database - 2. Make zip file from Magento folder - 3. move website to new service","breadcrumb":{"@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#primaryimage","url":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg","contentUrl":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magento-move-website.jpg","width":800,"height":445,"caption":"Magento 2 move website"},{"@type":"BreadcrumbList","@id":"https:\/\/magerubik.com\/blog\/move-magento-2-website-to-a-new-service\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magerubik blog site","item":"https:\/\/magerubik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"move Magento 2 website to a new service"}]},{"@type":"WebSite","@id":"https:\/\/magerubik.com\/blog\/#website","url":"https:\/\/magerubik.com\/blog\/","name":"Magerubik","description":"MageRubik blog site","publisher":{"@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8"},"alternateName":"Magento 2 Extension","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/magerubik.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8","name":"Hilary howard","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magerubik-logo.png","contentUrl":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magerubik-logo.png","width":265,"height":90,"caption":"Hilary howard"},"logo":{"@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/localhost\/blog","https:\/\/www.facebook.com\/magerubik","https:\/\/www.instagram.com\/magerubik","https:\/\/www.linkedin.com\/magerubik","https:\/\/www.pinterest.com\/magerubik","https:\/\/twitter.com\/https:\/\/www.twitter.com\/magerubik","https:\/\/www.myspace.com\/magerubik","https:\/\/www.youtube.com\/magerubik","https:\/\/www.soundcloud.com\/magerubik","https:\/\/www.tumblr.com\/magerubik","https:\/\/www.wikipedia.com\/magerubik"],"url":"https:\/\/magerubik.com\/blog\/author\/hilary-howard\/"}]}},"_links":{"self":[{"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":19,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":432,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/posts\/399\/revisions\/432"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/media\/407"}],"wp:attachment":[{"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}