squart Posted January 16, 2010 Posted January 16, 2010 Hello, I'm going to be moving OSC from one hosting provider to another but first I wanted to do a test run and install it locally via Wampserver. I got everything working the right way. The database is working as it should, the store is displaying all the products and images as it should. However the trouble is that when I try either of the following: 1) Log into my account in the store 2) Log into the admin using the admin account Both pages reload without granting me access. I have a sneaky suspicion that it's because I'm doing something wrong in the config files, most likely in defining the FS directories. I have Wampserver installed to C:/wamp/ and the HTML root is C:/wamp/www/ My two OSC installs (actually running two separate stores) reside at: C:/wamp/www/oscommerce/ C:/wamp/www/oscomm2/ Can someone please take a look at my config files and lend me a hand? osc/includes/configure.php define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'http://localhost'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); define('HTTP_COOKIE_PATH', '/oscommerce/'); define('HTTPS_COOKIE_PATH', '/oscommerce/'); define('DIR_WS_HTTP_CATALOG', '/oscommerce/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce/'); 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', '/www/oscommerce/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); osc/admin/includes/configure.php define('HTTP_SERVER', 'http://localhost/'); define('HTTP_CATALOG_SERVER', 'http://localhost/'); define('HTTPS_CATALOG_SERVER', 'http://localhost/'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/www/oscommerce/catalog/'); define('DIR_WS_ADMIN', '/oscommerce/admin/'); define('DIR_FS_ADMIN', '/www/oscommerce/catalog/admin/'); define('DIR_WS_CATALOG', '/oscommerce/'); define('DIR_FS_CATALOG', '/www/oscommerce/catalog/'); 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/');
Jan Zonjee Posted January 16, 2010 Posted January 16, 2010 I have a sneaky suspicion that it's because I'm doing something wrong in the config files, most likely in defining the FS directories. Try 127.0.0.1 in your configure php files instead of localhost (cookie problem).
squart Posted January 16, 2010 Author Posted January 16, 2010 Try 127.0.0.1 in your configure php files instead of localhost (cookie problem). Hi Jan, That worked but only for the store itself, not for the admin. This is what my config files look like now. osc/includes/configure.php define('HTTP_SERVER', 'http://127.0.0.1'); define('HTTPS_SERVER', 'http://127.0.0.1'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', '127.0.0.1'); define('HTTPS_COOKIE_DOMAIN', '127.0.0.1'); define('HTTP_COOKIE_PATH', '/oscommerce/'); define('HTTPS_COOKIE_PATH', '/oscommerce/'); define('DIR_WS_HTTP_CATALOG', '/oscommerce/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce/'); 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', '/www/oscommerce/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); osc/admin/includes/configure.php define('HTTP_SERVER', 'http://127.0.0.1/'); define('HTTP_CATALOG_SERVER', 'http://127.0.0.1/'); define('HTTPS_CATALOG_SERVER', 'http://127.0.0.1/'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/www/oscommerce/catalog/'); define('DIR_WS_ADMIN', '/oscommerce/admin/'); define('DIR_FS_ADMIN', '/www/oscommerce/catalog/admin/'); define('DIR_WS_CATALOG', '/oscommerce/'); define('DIR_FS_CATALOG', '/www/oscommerce/catalog/'); 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/');
Jan Zonjee Posted January 16, 2010 Posted January 16, 2010 That worked but only for the store itself, not for the admin. But you have slashes after 127.0.0.1 in your admin configure file but not in your catalog configure file. Might be that. This is what I use on my Mac locally (cat_seo instead of catalog or oscommerce in your case): define('HTTP_SERVER', 'http://127.0.0.1'); define('HTTP_CATALOG_SERVER', 'http://127.0.0.1'); define('HTTPS_CATALOG_SERVER', 'http://127.0.0.1'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/Library/WebServer/Documents/cat_seo/'); define('DIR_WS_ADMIN', '/cat_seo/admin/'); define('DIR_FS_ADMIN', '/Library/WebServer/Documents/cat_seo/admin/'); define('DIR_WS_CATALOG', '/cat_seo/'); define('DIR_FS_CATALOG', '/Library/WebServer/Documents/cat_seo/'); 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/');
squart Posted January 16, 2010 Author Posted January 16, 2010 But you have slashes after 127.0.0.1 in your admin configure file but not in your catalog configure file. Might be that. This is what I use on my Mac locally (cat_seo instead of catalog or oscommerce in your case): Sure enough :) Thanks for your help and insight.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.