{"id":7346,"date":"2020-03-31T10:33:42","date_gmt":"2020-03-31T10:33:42","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=7346"},"modified":"2020-03-31T10:33:42","modified_gmt":"2020-03-31T10:33:42","slug":"transfer-magento-website","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/","title":{"rendered":"Learn to Transfer Magento Website from Localhost to Server"},"content":{"rendered":"<p>You have spent a lot of your time in building your Magento store by uploading your products on it as well as configuring the currency rate on your localhost and you are quite happy with that. But now is the time to get popular globally and gain customers from all over the world. For this, you need to upload your store on a live production server so that all can view your store.<\/p>\n<p>In this tutorial, you will learn to transfer your Magento 1 store successfully to the live production server from your PC where no one can view it except you.<\/p>\n<p><strong>Prerequisites<\/strong><\/p>\n<p>At first, you need to purchase a domain. Here we will assume that you have done that but if not you can purchase it from any domain provider.<\/p>\n<p>Check the below steps to upload a Magento store on a live server:<\/p>\n<h3>Step 1: Exporting Your Database From Localhost<\/h3>\n<p>Firstly, login to <strong>phpMyAdmin<\/strong> account on your localhost on PC with the help of any localhost software. It might be WAMP, XAMPP or any other one which you work with. Then open the store\u2019s database. At the top of the menu, click on the <strong>Export<\/strong> option and then hit the <strong>Go<\/strong> button. With this, the localhost will download the database files of your store in the form of .sql extension. Save it as it is or in a .zip format.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9277\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/03\/export-min.png\" alt=\"\" width=\"758\" height=\"383\" \/><\/p>\n<h3>Step 2: Converting Your Magento Files in Zip Format<\/h3>\n<p>Here, you only need to zip all the Magento files that you will be uploading to the live server in some time. Go to the <strong>htdocs<\/strong> folder (if <strong>XAMPP<\/strong>) or <strong>www<\/strong> folder (if <strong>WAMP<\/strong>) and navigate to the <strong>Magento<\/strong> folder, and then compress all the files in the zip folder.<\/p>\n<h3>Step 3: Uploading Your Magento Files From Localhost to Your Web Server<\/h3>\n<p>Then upload your database to the domain via the cPanel. For this, login to the cPanel account on your live server and go to <strong>phpMyAdmin<\/strong>. Create a new database here.<\/p>\n<p>Note down the important things such as the database name, username, and password. Click on the <strong>New<\/strong> button to create the database.<\/p>\n<h3>Step 4: Import Database<\/h3>\n<p>After creating the database successfully, import the database that was downloaded from the localhost on your PC to this new database created now.<\/p>\n<p>Select the database that you have created and click on the <strong>Import<\/strong> tab on the top of the menu. In that, at the section <strong>Files to Import<\/strong> hit the <strong>Choose File<\/strong> button and select the file that you dump from your PC. Ensure that the format of the file is <strong>.sql<\/strong>.<\/p>\n<p>Now, click on the<strong> Go<\/strong> button. This will take a few minutes to import the database.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9276\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/03\/import-min.png\" alt=\"\" width=\"768\" height=\"84\" \/><\/p>\n<h3>Step 5: Uploading Your Magento Files<\/h3>\n<p>You can make a subfolder on your new domain or use the normal directory. Upload the zip file of the Magento file created in <strong>step 3<\/strong>. Once it is uploaded, extract that file there.<\/p>\n<h3>Step 6: Changing local.xml File for Access Magento System to Your New Database<\/h3>\n<p>It is time to make few changes in the local.xml file with your directory.<\/p>\n<p>Go to<strong> app\/etc\/local.xml<\/strong> and select the<strong> local.xml<\/strong> file. In that you need to change the information related to your new database created on your domain. It includes the name, username and the password that was set while importing the database on your new domain. Find a place to fit this information. Also, replace the <strong>connection tag<\/strong> with the new one as below:<\/p>\n<pre class=\"lang:default decode:true \">&lt;host&gt;host_name]]&lt;\/host&gt;\r\n\r\n&lt;username&gt;user_name]]&lt;\/username&gt;\r\n\r\n&lt;password&gt;database_password]]&lt;\/password&gt;\r\n\r\n&lt;dbname&gt;database_name]]&lt;\/dbname&gt;<\/pre>\n<h3>Step 7: Identifying Your New Domain Name for Magento System<\/h3>\n<p>Now you need to save the changes. In case you are editing on the browser, click on the <strong>Save<\/strong> button in the top right corner of the browser. However, if you select to download and edit the file, you have to upload it again within the right directory.<\/p>\n<p>For this, hover to the Magento database and search<strong> Table Core_Config_Data<\/strong>. Change your localhost URL to your Domain name in the paths <strong>\u201cweb\/unsecure\/base_url\u201d and \u201cweb\/secure\/base_url\u201d.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9275\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/03\/identify-domain-min-1024x358.png\" alt=\"\" width=\"1024\" height=\"358\" \/><\/p>\n<h3>Step 8: Clearing Cache<\/h3>\n<p>It is important to clear the cache that comprises the data from your localhost so that it will contain new data associated with your newly uploaded Magento store.<\/p>\n<p>Go to <strong>\/var\/cache<\/strong> and delete all the files and content from there to clear the cache. Select all files and then click on the red-cross button that says <strong>Delete<\/strong> from the menu to delete all the files. It is also possible to delete them one by one by selecting file and right-clicking it and then selecting <strong>Delete<\/strong>.<\/p>\n<h3>Step 9: Accessing Your Store<\/h3>\n<p>After complete all the above processes successfully, your Magento store is uploaded on your domain from the localhost successfully. Go to the browser, enter your domain name or the public IP of your domain and press enter.<\/p>\n<p>The frontend of your store will get displayed if you have followed the above steps correctly. It will appear similar on your localhost.<\/p>\n<h3>Conclusion<\/h3>\n<p>That\u2019s it! With this article, you have learned to upload your site or Magento store from localhost to any live production server in a very easy way. You just need to maintain the backup of everything (database and Magento store files). In case you want to edit anything, it can be done in the browser or by downloading it. Hope this article helps you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have spent a lot of your time in building your Magento store by uploading your products on it as well as configuring the currency rate on your localhost and you are quite happy with that. But now is the time to get popular globally and gain customers from all over the world. For this, [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[1361,407,410,1360],"class_list":["post-7346","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cms-faq","tag-localhost-to-live-server","tag-magento-store","tag-magento-website","tag-transfer-magento-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learn to Transfer Magento Website from Localhost to Server<\/title>\n<meta name=\"description\" content=\"Your Magento wevbsite needs to be uploaded to a live server. Discover the steps to upload your Magento website from localhot to the live server.\" \/>\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.co.uk\/hosting-faqs\/transfer-magento-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn to Transfer Magento Website from Localhost to Server\" \/>\n<meta property=\"og:description\" content=\"Your Magento wevbsite needs to be uploaded to a live server. Discover the steps to upload your Magento website from localhot to the live server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-31T10:33:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/03\/export-min.png\" \/>\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=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/\",\"name\":\"Learn to Transfer Magento Website from Localhost to Server\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/03\/export-min.png\",\"datePublished\":\"2020-03-31T10:33:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"Your Magento wevbsite needs to be uploaded to a live server. Discover the steps to upload your Magento website from localhot to the live server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/success-msg-new-min.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/success-msg-new-min.jpg\",\"width\":725,\"height\":287},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn to Transfer Magento Website from Localhost to Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?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.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn to Transfer Magento Website from Localhost to Server","description":"Your Magento wevbsite needs to be uploaded to a live server. Discover the steps to upload your Magento website from localhot to the live server.","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.co.uk\/hosting-faqs\/transfer-magento-website\/","og_locale":"en_GB","og_type":"article","og_title":"Learn to Transfer Magento Website from Localhost to Server","og_description":"Your Magento wevbsite needs to be uploaded to a live server. Discover the steps to upload your Magento website from localhot to the live server.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-03-31T10:33:42+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/03\/export-min.png","type":"","width":"","height":""}],"author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/","name":"Learn to Transfer Magento Website from Localhost to Server","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/03\/export-min.png","datePublished":"2020-03-31T10:33:42+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"Your Magento wevbsite needs to be uploaded to a live server. Discover the steps to upload your Magento website from localhot to the live server.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/success-msg-new-min.jpg","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/02\/success-msg-new-min.jpg","width":725,"height":287},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/transfer-magento-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Learn to Transfer Magento Website from Localhost to Server"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?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.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":557,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=7346"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7346\/revisions"}],"predecessor-version":[{"id":7350,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/7346\/revisions\/7350"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=7346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=7346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=7346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}