Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Duplicate an Oscommerce Site


starcarlton

Recommended Posts

Posted

I have my finished version of oscommerce with contributions ready - and I need to duplicate the entire site and database to use on other urls.

 

What files in the main catalog should I look at that connect to the database - so I can

change database logon/password info on the oscommerce side - to link up with a duplicated database?

 

Any ideas would be appreciated.

Thanks!

Posted
I have my finished version of oscommerce with contributions ready - and I need to duplicate the entire site and database to use on other urls.

 

What files in the main catalog should I look at that connect to the database - so I can

change database logon/password info on the oscommerce side - to link up with a duplicated database?

 

Any ideas would be appreciated.

Thanks!

 

catalog/includes/configure.php

catalog/admin/includes/configure.php

 

contain's database user name password name of database also the paths to your store

Posted
catalog/includes/configure.php

catalog/admin/includes/configure.php

 

contain's database user name password name of database also the paths to your store

NOTE: Do not use the installer program on the new sites. It will erase all products and flash it back to the original test products.

Posted
NOTE: Do not use the installer program on the new sites. It will erase all products and flash it back to the original test products.

 

 

Thanks for the info - but I still need some help

 

one of the sites that I want to use my version of oscommerce is not going to be in the root directory - it is going to be in a folder in the root directory:

 

http://www.mysite/Wholesale-Products

 

 

If I duplicate my database from an install where the catalog was in the root directory - will this work?

 

Using the example above - how should I change the config file - so the site will work in the new folder (Wholesale-Products/)

 

<?php

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

define('HTTPS_SERVER', 'http://mysite.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'mysite.com');

define('HTTPS_COOKIE_DOMAIN', 'mysite.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/mysite.com/html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'NeedMoney');

define('DB_SERVER_PASSWORD', 'MoreMoney');

define('DB_DATABASE', 'MYSITE');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

I messed around with this for awhile - and the page just comes up blank.

Posted
Thanks for the info - but I still need some help

 

one of the sites that I want to use my version of oscommerce is not going to be in the root directory - it is going to be in a folder in the root directory:

 

http://www.mysite/Wholesale-Products

 

 

If I duplicate my database from an install where the catalog was in the root directory - will this work?

 

Using the example above - how should I change the config file - so the site will work in the new folder (Wholesale-Products/)

 

<?php

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

define('HTTPS_SERVER', 'http://mysite.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'mysite.com');

define('HTTPS_COOKIE_DOMAIN', 'mysite.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/mysite.com/html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'NeedMoney');

define('DB_SERVER_PASSWORD', 'MoreMoney');

define('DB_DATABASE', 'MYSITE');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

I messed around with this for awhile - and the page just comes up blank.

<?php

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

define('HTTPS_SERVER', 'http://mysite.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'mysite.com');

define('HTTPS_COOKIE_DOMAIN', 'mysite.com');

define('HTTP_COOKIE_PATH', '/store/');

define('HTTPS_COOKIE_PATH', '/store/');

define('DIR_WS_HTTP_CATALOG', '/store/');

define('DIR_WS_HTTPS_CATALOG', '/store/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/mysite.com/html/store/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'NeedMoney');

define('DB_SERVER_PASSWORD', 'MoreMoney');

define('DB_DATABASE', 'MYSITE');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Posted
<?php

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

define('HTTPS_SERVER', 'http://mysite.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'mysite.com');

define('HTTPS_COOKIE_DOMAIN', 'mysite.com');

define('HTTP_COOKIE_PATH', '/store/');

define('HTTPS_COOKIE_PATH', '/store/');

define('DIR_WS_HTTP_CATALOG', '/store/');

define('DIR_WS_HTTPS_CATALOG', '/store/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/mysite.com/html/store/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'NeedMoney');

define('DB_SERVER_PASSWORD', 'MoreMoney');

define('DB_DATABASE', 'MYSITE');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

 

What about the images and includes? don't I have to change those paths as well??

When you added the word /store/ - am I to put the word "store" or is this where I should put the folder name where the store is located (Wholesale-Products)?

Thanks for your help !

Posted

I have the duplicated site - but the left nav does not point anywhere

- the program is not building new pages.

 

along with the 2 files to change that were listed above - do I have to change anything on the database itself?

 

My webhost said something about accessing phpmyadmin to look into the tables/fields.

 

Any suggestions on what I am missing?

Posted
I have the duplicated site - but the left nav does not point anywhere

- the program is not building new pages.

 

along with the 2 files to change that were listed above - do I have to change anything on the database itself?

 

My webhost said something about accessing phpmyadmin to look into the tables/fields.

 

Any suggestions on what I am missing?

 

 

Can anyone help with this? I am trying to duplicate a site of mine with many mods.

 

How can I duplicate this site?

 

My webhost said that certain files are hard coded into the database - and just changing the config files will not just make it work.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...