Assertivead Posted March 7, 2004 Share Posted March 7, 2004 I just installed OsCommerce, and when i go to assertivead.com/catalog , it shows everything is broken. Is it my configuration files? I just set them up and I think that they are right, but I'm not sure Heres the code for the catalog/includes/configure.php. define('HTTP_SERVER', 'http://www.assertivead.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.assertivead.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.assertivead.com'); define('HTTPS_COOKIE_DOMAIN', 'www.assertivead.com'); define('HTTP_COOKIE_PATH', '/cookies/'); define('HTTPS_COOKIE_PATH', '/cookies/'); define('DIR_WS_HTTP_CATALOG', '/kwelch3/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/kwelch3/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', '/m1/kwelch3/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', 'mysql.assertivead.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'kwelch3'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', 'kwelch3'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' and the admin config.php define('HTTP_SERVER', 'http://www.assertivead.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http:/www.assertivead.com/'); define('HTTPS_CATALOG_SERVER', '://'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/m1/kwelch3/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'www.assertivead.com/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/m1/kwelch3/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/m1/kwelch3/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/m1/kwelch3/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'mysql.assertivead.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'kwelch3'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', 'kwelch3'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' are these correct, or is there another file that I must edit? Assertive Advertising Third Generation Advertising Link to comment Share on other sites More sharing options...
AlanR Posted March 7, 2004 Share Posted March 7, 2004 Why do you have these set like this? define('DIR_WS_HTTP_CATALOG', '/kwelch3/catalog/');? define('DIR_WS_HTTPS_CATALOG', '/kwelch3/catalog/'); Just make them /catalog/ Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Assertivead Posted March 7, 2004 Author Share Posted March 7, 2004 I don't know why I did it, but I changed it back nad it works now! But now when I try to go into the links under the admin tools, they are all broken. Assertive Advertising Third Generation Advertising Link to comment Share on other sites More sharing options...
AlanR Posted March 7, 2004 Share Posted March 7, 2004 I don't know why I did it, but I changed it back nad it works now! But now when I try to go into the links under the admin tools, they are all broken. Same thing. I should have mentioned it before but the paths are also wrong in catalog/admin/includes/configuration.php I figured you'd catch that. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
AlanR Posted March 7, 2004 Share Posted March 7, 2004 Here: define('DIR_WS_ADMIN', 'www.assertivead.com/catalog/admin/ You're getting this because you've got the server name in the path http://www.assertivead.comwww.assertivead....ef125037a2aed7c Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Assertivead Posted March 7, 2004 Author Share Posted March 7, 2004 how would I go about changing my homepage to the store? Just copy everything out fo the catalog folder into root? Assertive Advertising Third Generation Advertising Link to comment Share on other sites More sharing options...
AlanR Posted March 7, 2004 Share Posted March 7, 2004 Yep. Just move the contents of the catalog folder up one level into the http root folder Don't forget to change your paths again :lol: Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
Assertivead Posted March 8, 2004 Author Share Posted March 8, 2004 how would i go about setting a password on the admin directory? I tried using .htaccess, but when I applied it, i couldn't get in with the logins i had created ion the .htpsswd file. Assertive Advertising Third Generation Advertising Link to comment Share on other sites More sharing options...
Assertivead Posted March 10, 2004 Author Share Posted March 10, 2004 [/code]I moved everything from the calog folder to the root. Everything works except for everything on the catalog page is a broken link. heres the catalog config define('HTTP_SERVER', 'http://www.assertivead.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.assertivead.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.assertivead.com'); define('HTTPS_COOKIE_DOMAIN', 'www.assertivead.com'); define('HTTP_COOKIE_PATH', '/cookies/'); define('HTTPS_COOKIE_PATH', '/cookies/'); define('DIR_WS_HTTP_CATALOG', ''); define('DIR_WS_HTTPS_CATALOG', ''); and the admin d efine('HTTP_SERVER', 'http://www.assertivead.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.assertivead.com'); define('HTTPS_CATALOG_SERVER', 'https://www.assertivead.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/m1/kwelch3/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/m1/kwelch3/admin/'); // absolute pate required define('DIR_WS_CATALOG', ''); // absolute path required define('DIR_FS_CATALOG', '/m1/kwelch3/'); // absolute path required where have I gone wrong? Assertive Advertising Third Generation Advertising Link to comment Share on other sites More sharing options...
241 Posted March 10, 2004 Share Posted March 10, 2004 Catalog in Root define('HTTP_SERVER', 'http://www.assertivead.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.assertivead.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.assertivead.com'); define('HTTPS_COOKIE_DOMAIN', 'www.assertivead.com'); define('HTTP_COOKIE_PATH', '/cookies/'); define('HTTPS_COOKIE_PATH', '/cookies/'); 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', '/m1/kwelch3/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'mysql.assertivead.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'kwelch3'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', 'kwelch3'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Admin define('HTTP_SERVER', 'https://www.assertivead.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.assertivead.com'); define('HTTPS_CATALOG_SERVER', 'https://www.asertivead.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/m1/kwelch3/'); // where the pages are located on the server define('DIR_WS_ADMIN', /admin/'); // absolute path required define('DIR_FS_ADMIN', '/m1/kwelch3/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/m1/kwelch3/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'mysql.assertivead.com'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'kwelch3'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', 'kwelch3'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.