{"id":9310,"date":"2020-04-11T07:21:16","date_gmt":"2020-04-11T07:21:16","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=9310"},"modified":"2024-05-08T15:55:15","modified_gmt":"2024-05-08T10:25:15","slug":"move-magento-store-one-server-to-another","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/","title":{"rendered":"Learn to Move Your Magento Store From One Server to Another"},"content":{"rendered":"<p>It is very difficult to move any kind of application between servers. Even with <a href=\"https:\/\/www.milesweb.in\/apps\/magento-hosting\">Magento<\/a> you face lot of challenges. Therefore, here\u2019s a step by step guide to learn about moving your Magento online store from one server to another.<\/p>\n<p>When you transfer a Magento website there are some things that you need to worry about as compared to downtime. Let\u2019s check the steps.<\/p>\n<p><strong>Prerequisites<\/strong><\/p>\n<ul>\n<li>Root access to both servers<\/li>\n<li>cPanel or knowledge on creating virtual host on the new server<\/li>\n<\/ul>\n<h3>Step 1. Inform the Store Administrators About the Transfer<\/h3>\n<p>Firstly, inform the Magento administrators to stop working on the store. Or else, things might get lost in the process.<\/p>\n<h3>Step 2. Create An Account on New Server<\/h3>\n<p>Using the same username for user, create an account on the new server where you are going to transfer your store.<\/p>\n<h3>Step 3. Create New databases and Users on the New Server<\/h3>\n<p>On the new server after logging, create new databases and users by replicating settings from the old server.<\/p>\n<p>You will find this data in your document root (on old server) for Magento within<strong> app\/etc\/local.xml.<\/strong><\/p>\n<h3>Step 4. Backup public_html folder<\/h3>\n<p>Then you need to take the backup public_html folder by going to your account:<\/p>\n<pre class=\"lang:default decode:true \">cd \/home\/username\/\ntar -zcvf archive.tar.gz public_html<\/pre>\n<h3>Step 5. Dump Databases from Old Server<\/h3>\n<p>Now, dump database(s) from old server using the mysqldump option for taking the backup of your database instantly.<\/p>\n<h3>Step 6. Move Databases to a New Server<\/h3>\n<p>Move the <strong>archive.tar.gz<\/strong>, and databases to the new server using <strong>scp<\/strong> as below:<\/p>\n<pre class=\"lang:default decode:true \">scp archive.tar.gz root@new.example-server.com:\/home\/username\nscp *.sql root@new.example-server.com:\/home\/username<\/pre>\n<h3>Step 7. Import the Database Backup<\/h3>\n<p>Next, just import the database backup from the dump file. Sometimes it is difficult to import the dump of the database using PMA. So, it is better to upload database to a server and import it via command line interface (CLI).<\/p>\n<p>Use the below command to import database with CLI:<\/p>\n<pre class=\"lang:default decode:true \">cat database_name.sql | mysql -uusername -puser_password database_name<\/pre>\n<h3>Step 8. Configure New Server public_html<\/h3>\n<p>You need to configure new server public_html using the below command:<\/p>\n<pre class=\"lang:default decode:true\">mv public_html public_html_backup\nUnarchive archive.tar.gz: tar xvfz archive.tar.gz\nSet privileges: chown -R username:username public_html\nSet public_html group to nobody: chown username:nobody public_html<\/pre>\n<h3>Step 9. Create a New Subdomain<\/h3>\n<p>Create a new subdomain and modify your Magento install to load from this domain.<\/p>\n<p>In your cPanel, create subdomain:<strong> new.yoursite.com<\/strong><\/p>\n<p>Then go to PhpMyAdmin and edit <strong>database core_config_data<\/strong> and change <strong>yoursite.com to new.yoursite.com<\/strong> for path: <strong>web\/secure\/base_url and web\/unsecure\/base_url<\/strong><\/p>\n<h3>Step 10. Getting 500 Error<\/h3>\n<p>If you are getting 500 error, go to public_html dir, and run the below two commands:<\/p>\n<pre class=\"lang:default decode:true \">find . -type d -exec chmod 0755 {} \\;\nfind . -type f -exec chmod 0644 {} \\;<\/pre>\n<h3>Step 11. Ensure Your Website is Working<\/h3>\n<p>Ensure that your website on new.yoursite.com is working properly<\/p>\n<h3>Step 12. Redirect DNS<\/h3>\n<p>Redirect your DNS by running Rsync from current server to ensure that all your files (especially session) are in sync with the new server as below:<\/p>\n<pre class=\"lang:default decode:true \">rsync -avz public_html\/ root@new.example-server.com:\/home\/username\/public_html\/<\/pre>\n<p>That\u2019s it! You have learned to move your Magento store from one server to another.<\/p>\n<p><strong>Also Read:<\/strong><br \/>\n<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/transfer-magento-website\/\" target=\"_blank\" rel=\"noopener\"><strong>Learn to Transfer Magento Website from Localhost to Server<\/strong><\/a><br \/>\n<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/magento-maintenance-mode\/\" target=\"_blank\" rel=\"noopener\"><strong>Learn to Enable and Disable Magento Maintenance Mode<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is very difficult to move any kind of application between servers. Even with Magento you face lot of challenges. Therefore, here\u2019s a step by step guide to learn about moving your Magento online store from one server to another. When you transfer a Magento website there are some things that you need to worry [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[407,410,1390,1391],"class_list":["post-9310","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos","tag-magento-store","tag-magento-website","tag-move-magento-to-new-server","tag-transfer-magento-to-another-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Learn to Move Your Magento Store From One Server to Another<\/title>\n<meta name=\"description\" content=\"The article describes the steps to move your Magento store from one server to another.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn to Move Your Magento Store From One Server to Another\" \/>\n<meta property=\"og:description\" content=\"The article describes the steps to move your Magento store from one server to another.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-11T07:21:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-08T10:25:15+00:00\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\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\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/\"},\"author\":{\"name\":\"Pallavi Godse\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"headline\":\"Learn to Move Your Magento Store From One Server to Another\",\"datePublished\":\"2020-04-11T07:21:16+00:00\",\"dateModified\":\"2024-05-08T10:25:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/\"},\"wordCount\":493,\"commentCount\":0,\"keywords\":[\"Magento store\",\"Magento website\",\"move magento to new server\",\"transfer magento to another server\"],\"articleSection\":[\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/\",\"name\":\"Learn to Move Your Magento Store From One Server to Another\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2020-04-11T07:21:16+00:00\",\"dateModified\":\"2024-05-08T10:25:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article describes the steps to move your Magento store from one server to another.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn to Move Your Magento Store From One Server to Another\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn to Move Your Magento Store From One Server to Another","description":"The article describes the steps to move your Magento store from one server to another.","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:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/","og_locale":"en_US","og_type":"article","og_title":"Learn to Move Your Magento Store From One Server to Another","og_description":"The article describes the steps to move your Magento store from one server to another.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-04-11T07:21:16+00:00","article_modified_time":"2024-05-08T10:25:15+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/"},"author":{"name":"Pallavi Godse","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"headline":"Learn to Move Your Magento Store From One Server to Another","datePublished":"2020-04-11T07:21:16+00:00","dateModified":"2024-05-08T10:25:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/"},"wordCount":493,"commentCount":0,"keywords":["Magento store","Magento website","move magento to new server","transfer magento to another server"],"articleSection":["How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/","name":"Learn to Move Your Magento Store From One Server to Another","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2020-04-11T07:21:16+00:00","dateModified":"2024-05-08T10:25:15+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article describes the steps to move your Magento store from one server to another.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/move-magento-store-one-server-to-another\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Learn to Move Your Magento Store From One Server to Another"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=9310"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9310\/revisions"}],"predecessor-version":[{"id":18075,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9310\/revisions\/18075"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=9310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=9310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=9310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}