Knowledge Base Article

How to transfer my osCommerce from one host to another?

Transferring your osCommerce application includes copying your files and database and modifying the two configure.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_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_osc1');

DB_SERVER_PASSWORD - the password for accessing the database:

define('DB_SERVER_PASSWORD', 'oscpassword');

DB_DATABASE - the shop database:

define('DB_DATABASE', 'user_osc1');

 

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

 

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

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

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/');

 

Some older versions of osCommerce require register_globals to be enabled in order for the shop to function. If you get an error about register_globals being disabled, please check this article to see how to enable it.



Rating

Please indicate if this article was helpful for you.

rating :  3.3 from 5
views :  98
votes :  3

Valid XHTML 1.0 Strict Valid CSS!