xwilsonx Posted July 28, 2005 Share Posted July 28, 2005 So i got a new domain name and i just copied all the files over. the problem is.. Oscommerce is still looking for the old links whenever i try to add a new product. i will get a message like: "Error: Catalog images directory does not exist: /home/goodxnew/public_html/catalog/images/" its looking at the old domain "goodxnew" and not the new one which is "goodnews" how do i fix this? please i am desperate! Link to comment Share on other sites More sharing options...
Guest Posted July 28, 2005 Share Posted July 28, 2005 catalog/includes/configure catalog/admin/includes/configure need to change the entries so it points to the new addresses :) Link to comment Share on other sites More sharing options...
xwilsonx Posted July 28, 2005 Author Share Posted July 28, 2005 catalog/includes/configure catalog/admin/includes/configure need to change the entries so it points to the new addresses :) <{POST_SNAPBACK}> well i just tried that, here is the problem: the databse (sql) is still on the old account. i dont know how to move it and neither does the guy who runs the hosting so he said i could leave it on the old account is there anyway to move it in cpanel? with that said, all the php files are on the new account (domain) so i guess its looking for a database on the new account thats not there? Link to comment Share on other sites More sharing options...
xwilsonx Posted July 28, 2005 Author Share Posted July 28, 2005 I am having a hard time putting this into words. let me try this again i had my store on www.goodxnews.com for a while. we just got a new domain: www.goodnewsrecords.com and we transfered all the files over to a new account on my hosting company. we transfered all files but left the store database on the old account @ goodxnews.com so is there a way oscommerce can look at the database on the old account (goodxnews) but yet read the php files in the catalong folder on the new account and update them? does this make sense? Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2005 Share Posted July 29, 2005 I am having a hard time putting this into words. let me try this again i had my store on www.goodxnews.com for a while. we just got a new domain: www.goodnewsrecords.com and we transfered all the files over to a new account on my hosting company. we transfered all files but left the store database on the old account @ goodxnews.com so is there a way oscommerce can look at the database on the old account (goodxnews) but yet read the php files in the catalong folder on the new account and update them? does this make sense? <{POST_SNAPBACK}> Yes, your database details have not changed so dont amend them in your configure.php fileS, but you need to amend the other stuff in the configure fileS There isn't any URL information in the database Link to comment Share on other sites More sharing options...
xwilsonx Posted July 29, 2005 Author Share Posted July 29, 2005 alright i think i may have it but just to be sure, what would i change? <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.goodxnews.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.goodxnews.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_IMAGESBIG', DIR_WS_IMAGES . 'big/'); 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', '/home/goodxnew/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', ****'); define('DB_DATABASE', 'goodxnew_store'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> where it says www.goodxnews.com replace it to www.goodnewsrecords.com? and thats it? how will it know that the database is still under the goodxnews account? Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2005 Share Posted July 29, 2005 because of this define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', ****'); define('DB_DATABASE', 'goodxnew_store'); The database sits on the same machine (localhost), it has nothing to do with URLs Link to comment Share on other sites More sharing options...
xwilsonx Posted July 29, 2005 Author Share Posted July 29, 2005 that would make sense! thank you for the help, i learned something today! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.