How can I transfer my osCommerce from one host to another?

By | December 10, 2010

You can transfer your osCommerce application from one web hosting service provider to another, by copying your application files and database’s and modifying the two configure.php files located at includes/ and admin/includes/ folder to ensure smooth functioning with the new server settings.

oscommerce_logo

The settings that need to be modified in includes/configure.php are mentioned below:

HTTP_SERVER : You need to set this up to your domain name

define (‘HHTP_SERVER’, ‘http://mydomainname.com’);

DIR_FS_CATLOG : Then you need to define the absolute path to your shop

define (‘DIR_FS_CATLOG’, ‘/home/user/public_html/shop’);

DB_SERVER : You need to set this to the localhost

define (‘DB_SERVER’, ‘localhost’);

DB_SERVER_USERNAME : Assign the username with permissions and privalages to access the shop database

define (‘DB_SERVER_USERNAME’, ‘user_osc’);

DB_SERVER_PASSWORD : Assign the password to access the database

define (‘DB_SERVER_PASSWORD’, ‘password’)

DB_DATABASE : Define the the shop database

define (‘DB_DATABASE’, ‘user_osc’)


The settings that need to be modified in admin/includes/configure.php are mentioned below:

DIR_FS_DOCUMENT_ROOT – Then you need to define the absolute path to your shop

define(‘DIR_FS_DOCUMENT_ROOT’, ‘/home/user/public_html/shop/’);

DIR_FS_ADMIN – Then you need to define the absolute path to the admin folder

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


Some of the older versions of osCommerce need register_globals to be enables for the shop to function.