{"id":4405,"date":"2017-12-29T03:58:07","date_gmt":"2017-12-29T03:58:07","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=4405"},"modified":"2017-12-29T03:58:56","modified_gmt":"2017-12-29T03:58:56","slug":"how-to-move-magento-shop-to-another-server","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-move-magento-shop-to-another-server\/","title":{"rendered":"How to move magento shop to another server"},"content":{"rendered":"<p>The following procedure describes the\u00a0<strong>basic needs<\/strong>\u00a0for\u00a0<strong>moving your magento-shop<\/strong>\u00a0to another server. There might be additional things to consider (changing domains, DNS, PHP-Configuration, tools &amp; programms on your server) which need to take care of on your own.<\/p>\n<p><strong>1. Backup files<\/strong>\u00a0in your Magento directory on your old server:<\/p>\n<p>You might empty your var\/cache, var\/session, var\/report and var\/log directory first to save space and speed up the backup<\/p>\n<p><strong>2. Create a database dump<\/strong>\u00a0on your old server:<\/p>\n<p>Use phpMyAdmin, Chive or via console with mysqldump, n98-magerun<\/p>\n<p><strong>3. Set up directory structure<\/strong>\u00a0for files and create database + user on your new server<\/p>\n<p><strong>4. Move files and database dump<\/strong>\u00a0to your new server: via FTP, SSH,&#8230;<\/p>\n<p><strong>5. Extract file-backup<\/strong>\u00a0to your new magento directory<\/p>\n<p><strong>6. Check and set file-permissions<\/strong><\/p>\n<p>Usually 644 for files and 755 for folders.<\/p>\n<p>See also this question for more information:\u00a0<a href=\"https:\/\/magento.stackexchange.com\/questions\/12158\/what-permissions-should-i-give-var-and-media\" target=\"_blank\" rel=\"noopener\">What permissions should I give \/var and \/media?<\/a><\/p>\n<p><strong>7. Import database-dump<\/strong>\u00a0on your new server:<\/p>\n<p>Use phpMyAdmin, Chive or via console with mysql, n98-magerun<\/p>\n<p><strong>8. Update new database-settings<\/strong>\u00a0in app\/etc\/local.xml<\/p>\n<p><strong>9. Update URLs<\/strong>\u00a0in core_config_data:<\/p>\n<p>You can edit the base_url via Web-Frontend (phpMyAdmin, Chive,&#8230;) or use these SQL-statements. You might need to edit the urls for your stores also.<\/p>\n<p>Look for\u00a0<code>path =\"web\/unsecure\/base_url\"<\/code>\u00a0and\u00a0<code>path=\"web\/secure\/base_url\"<\/code>\u00a0in the\u00a0<code>core_config_data<\/code>\u00a0table.<\/p>\n<p><strong>10. Empty var\/cache, var\/session, var\/report, var\/log<\/strong>\u00a0(if you did not do that before you created the backup on the old server)<\/p>\n<p><strong>11. Reindex your data<\/strong>: catalog url rewrites<\/p>\n<p><strong>12. Enjoy your beer!<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Reference<\/p>\n<p><a href=\"https:\/\/magento.stackexchange.com\/questions\/22120\/how-to-move-magento-shop-to-another-server\" target=\"_blank\" rel=\"noopener\">magento <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following procedure describes the\u00a0basic needs\u00a0for\u00a0moving your magento-shop\u00a0to another server. There might be additional things to consider (changing domains, DNS, PHP-Configuration, tools &amp; programms on your server) which need to&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4207],"tags":[4208],"class_list":["post-4405","post","type-post","status-publish","format-standard","hentry","category-magento","tag-magento"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=4405"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4405\/revisions"}],"predecessor-version":[{"id":4407,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4405\/revisions\/4407"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=4405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=4405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=4405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}