{"id":27989,"date":"2013-02-27T05:33:10","date_gmt":"2013-02-27T10:33:10","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=27989"},"modified":"2016-06-06T07:00:53","modified_gmt":"2016-06-06T11:00:53","slug":"zencart-how-to-move-your-website-from-one-domain-to-another","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/zencart-how-to-move-your-website-from-one-domain-to-another.html","title":{"rendered":"ZenCart. How to move your website from one domain to another"},"content":{"rendered":"<p>In this tutorial we will learn how to transfer ZenCart from one domain to another.<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=EtJNwzzRhlM?width=1280&amp;height=720\" rel=\"prettyPhoto\">ZenCart. How to move your website from one domain to another<\/a>\r\n\r\n<p class=\"info-box\">Transferring your ZenCart application includes copying your files and database and modifying the two <strong>configure.php<\/strong> files in <strong>includes\/<\/strong> and <strong>admin\/includes\/<\/strong> folders to work with the new server settings.<\/p>\r\n\r\n<p><strong>1.<\/strong> On your old host, make a complete backup of your database and store.<\/p>\r\n\r\n<p><strong>2.<\/strong> We recommend to use phpMyAdmin to export your entire database. Include the <strong>&#8220;DROP&#8221; tables<\/strong> command, and under Data, choose <strong>&#8220;Complete Inserts&#8221;<\/strong> and <strong>&#8220;Extended Inserts&#8221;<\/strong>.<\/p>\r\n\r\n<p><strong>3.<\/strong> Transfer all your ZenCart files to another hosting webserver.<\/p>\r\n\r\n<p><strong>4.<\/strong> On your <strong>new<\/strong> host, create a new MySQL database. Note the username, password, database name, and host name.<\/p>\r\n\r\n<p><strong>5.<\/strong> Go back to phpMyAdmin on your <strong>new<\/strong> server.<\/p>\r\n\r\n<p><strong>6.<\/strong> Click on the SQL tab across the top (or &#8220;Import&#8221; on newer phpMyAdmin configurations) and click Browse.<\/p>\r\n\r\n<p><strong>7.<\/strong> Select the SQL file which we&#8217;ve exported from your old database, and click Go.<\/p>\r\n\r\n<p><strong>8.<\/strong> Open <strong>configure.php<\/strong> files <strong>includes\/<\/strong> and <strong>admin\/includes\/<\/strong> folders to change the server path and database details.<\/p>\r\n\r\n<p class=\"attention\">Note: you may need to change file permissions for <strong>configure.php<\/strong> file to make it writable. Make sure to change it back when you are done modifying.<\/p>\r\n\r\n<p><strong>9.<\/strong> The most important settings which should be modified in <strong>includes\/configure.php<\/strong> are:<\/p>\r\n\r\n<ol>\r\n\r\n<li><strong>HTTP_SERVER<\/strong> \u2013 you should set this to your domain name, e.g. http:\/\/yourdomain.com:\r\n\r\n<pre class=\"brush:php\">define(\u2018HTTP_SERVER\u2019, \u2018http:\/\/yourdomain.com\u2019);<\/pre><\/li>\r\n\r\n<li><strong>DIR_WS_CATALOG<\/strong> \u2013 the relative path to your shop:\r\n\r\n<pre class=\"brush:php\">define(\u2018DIR_WS_CATALOG\u2019, \u2018\/shop\/\u2019);<\/pre><\/li>\r\n\r\n<li><strong>DIR_FS_CATALOG<\/strong> \u2013 the absolute path to your shop, e.g. \/home\/user\/public_html\/shop\/:\r\n\r\n<pre class=\"brush:php\">define(\u2018DIR_FS_CATALOG\u2019, \u2018\/home\/user\/public_html\/shop\u2019);<\/pre><\/li>\r\n\r\n<li><strong>DB_SERVER<\/strong> \u2013 usualy localhost:\r\n\r\n<pre class=\"brush:php\">define(\u2018DB_SERVER\u2019, \u2018localhost\u2019);<\/pre><li>\r\n\r\n<li><strong>DB_SERVER_USERNAME<\/strong> \u2013 the username with privileges to access the shop database:\r\n\r\n<pre class=\"brush:php\">define(\u2018DB_SERVER_USERNAME\u2019, \u2018user_zc1\u2032);<\/pre><\/li>\r\n\r\n<li><strong>DB_SERVER_PASSWORD<\/strong> \u2013 the password for accessing the database:\r\n\r\n<pre class=\"brush:php\">define(\u2018DB_SERVER_PASSWORD\u2019, \u2018zcpassword\u2019);<\/pre><\/li>\r\n\r\n<li><strong>DB_DATABASE<\/strong> \u2013 the shop database:\r\n\r\n<pre class=\"brush:php\">define(\u2018DB_DATABASE\u2019, \u2018user_zc1\u2032);<\/pre><\/li>\r\n\r\n<\/ol>\r\n\r\n<p><strong>10.<\/strong> In <strong>admin\/includes\/configure.php<\/strong>, along with the settings above, you should also modify:<\/p>\r\n\r\n<ol>\r\n<li>DIR_WS_ADMIN \u2013 the relative path to the admin folder:\r\n\r\n<pre class=\"brush:php\">define(\u2018DIR_WS_ADMIN\u2019, \u2018\/shop\/admin\/\u2019);<\/pre><\/li>\r\n\r\n<li>DIR_FS_ADMIN \u2013 the absolute path to the admin folder, e.g. \/home\/user\/public_html\/shop\/admin\/:\r\n\r\n<pre class=\"brush:php\">define(\u2018DIR_FS_ADMIN\u2019, \u2018\/home\/user\/public_html\/shop\/admin\/\u2019); <\/pre><\/li>\r\n\r\n<\/ol>\r\n\r\n<p class=\"attention\">Note: in some cases, you will need to enable the theme via <strong>Tools >> Template Selection<\/strong>.<\/p>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=EtJNwzzRhlM?width=1280&amp;height=720\" rel=\"prettyPhoto\">ZenCart. How to move your website from one domain to another<\/a>","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will learn how to transfer ZenCart from one domain to another.<\/p>\n","protected":false},"author":12,"featured_media":27997,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[734],"tags":[1496,1237,1188,645,2408],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/27989"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=27989"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/27989\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/27997"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=27989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=27989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=27989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}