tahuti Posted February 24, 2004 Posted February 24, 2004 Ok....Sorry to bother folks with something that seems it must be a local problem on my end but......here's my problem.....any help would be greatly appreciated..... I have a live site at www.mysiteroot.us/catalog using the standard catalog directory..... I set up a tester site at www.mysiteroot.us/testsite/catalog......using a backup of my live site in the main catalog directory......I then exported my live site sql and imported it into a new sql database for my test site....... I then also changed my testsite/catalog/includes/configure.php file to reflect the changes.....and thought that would do the trick..... and everything works great.......EXCEPT: (I am using a highly customized OSC package with 30 or so contribution modifications......and this is perhaps important as my problem lies with one of the modifications I believe.....It has to do with the ADMIN LOGIN contribution.....) I CAN NOT LOG INTO MY ADMIN FOR THE TEST SITE...... My OSC setup uses the multiple admin module where you can define admin access and it includes the password protection module for the admin section of my site.....ie....@ testsite/catalog/admin a login.php box is generated asking for email/id and password....... Everytime I try to log into www.mysiteroot.us/testsite/catalog/admin......it takes my information as valid but redirects me to my main live site admin @ www.mysiteroot.us/catalog/admin......thus I can never access my testsite admin area........ I don't know if anyone has had this problem...or can help me out....but I tried all night....litterally 3 or 4 hours of trying this and that and finally gave up.....please help if you can...... Below I include my configure.php files because I worry something is amuck there..... I altered my site name and DB connection info just for this post for security reasons.....but those are not my problem...my DB connection works great.... My live site configure for www.mysiteroot.us/catalog/includes/configure.php: <?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.mysiteroot.us'); // 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.mysiteroot.us'); 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_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/'); //Added for BTS1.0 define('DIR_WS_TEMPLATES', 'templates/'); define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/tahuti11/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', '************); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> AND my test site www.mysiteroot.us/testsite/catalog/includes/configure.php: <?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.mysiteroot.us'); // 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.mysiteroot.us'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/testsite/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/testsite/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/'); //Added for BTS1.0 define('DIR_WS_TEMPLATES', 'templates/'); define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/tahuti11/public_html/testsite/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', '***********'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> I tried adding the following to the second test site configure file but it didn't seem to help: define('DIR_WS_ADMIN', DIR_WS_CATALOG . 'admin/'); define('DIR_FS_ADMIN', DIR_FS_CATALOG . 'admin/'); ************************************ Ok....I don't see any other things to modify...I don't see any references in the sql tables that would force my admin to the live site...... I'm stumped....but would love to have a test site..... If no one knows how to solve this specific problem or can't for lack of information....please maybe someone else has set up such a test site situation and could point me in the right direction...... thanks..... IT LOOKS LIKE A FORUMS ADMIN DELETED THIS POST FROM THE GENERAL SUPPORT SECTION AND I DON'T KNOW WHY BUT HERE I AM REPOSTING TO THE CONTRIBUTIONS SECTION.....PLEASE CONTACT ME VIA EMAIL IF I'M BREAKING ANY RULES BUT I SURELY CAN'T SEE WHY? THIS SHOULD NOT BE A DOUBLE POST AS I CANNOT FIND MY ORIGINAL POSTING OF THIS..... Quote
Guest Posted February 24, 2004 Posted February 24, 2004 did you change the admin/includes/configure.php file? Quote
241 Posted February 24, 2004 Posted February 24, 2004 as John says but also you mention making a copy of the catalog and a new database, however you do not mention making a copy of the admin remember that the admin/includes/configure.php references paths in the catalog so you would need to copy your admin and then alter the admin/includes/configure.php to reflect the path changes and database change Quote No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
tahuti Posted February 24, 2004 Author Posted February 24, 2004 That did the trick...thanks folks for the quick responses........ I forgot there was an admin configure file too......just had to change it....... Thanks again...... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.