How to transfer my ZenCart from one host to another?

Transferring your ZenCart application includes copying your files and database and modifying the twoconfigure.php files in includes/ and admin/includes/ folders to work with the new server settings.

The most important settings which should be modified in includes/configure.php are:

HTTP_SERVER - you should set this to your domain name, e.g. http://yourdomain.com:

define('HTTP_SERVER', 'http://yourdomain.com');

DIR_WS_CATALOG - the relative path to your shop:

define('DIR_WS_CATALOG', '/shop/');

DIR_FS_CATALOG - the absolute path to your shop, e.g. /home/user/public_html/shop/:

define('DIR_FS_CATALOG', '/home/user/public_html/shop');

DB_SERVER - you should set this to localhost:

define('DB_SERVER', 'localhost');

DB_SERVER_USERNAME - the username with privileges to access the shop database:

define('DB_SERVER_USERNAME', 'user_zc1');

DB_SERVER_PASSWORD - the password for accessing the database:

define('DB_SERVER_PASSWORD', 'zcpassword');

DB_DATABASE - the shop database:

define('DB_DATABASE', 'user_zc1');

In admin/includes/configure.php, along with the settings above, you should also modify:

DIR_WS_ADMIN - the relative path to the admin folder:

define('DIR_WS_ADMIN', '/shop/admin/');

DIR_FS_ADMIN - the absolute path to the admin folder, e.g. /home/user/public_html/shop/admin/:

define('DIR_FS_ADMIN', '/home/user/public_html/shop/admin/');

You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Secure Zen Cart

In order to secure Zen Cart please follow these steps: 1. Download all your Zen Cart files 2....

Rename Zen Cart Admin Directory

It is necessary to rename Zen cart admin directory in order to make it more secure. This can be...

How to install a Zen Cart template?

In order to install a Zen Cart template, you need to upload the installation template package...

How to reset the administrative password of Zen Cart

If you have lost the administrative password of your Zen Cart application and the password reset...

How to optimize Zen Cart for better performance?

Zen Cart is one of the most popular free shopping cart applications currently available. Here...