homewetbar Posted February 27, 2005 Share Posted February 27, 2005 I seem to be having a problem with my "test" site it is in the "/test/" subdirectory of the main site. Whaty is happening is it loads fine, you click on a page then all the other urls are modified directing back to pages on the main site and missing the "/test/" path. Here is my 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.mysite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.mysite.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.mysite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); define('HTTP_COOKIE_PATH', '/test/cookies/'); define('HTTPS_COOKIE_PATH', '/test/cookies/'); define('DIR_WS_HTTP_CATALOG', '/test/'); define('DIR_WS_HTTPS_CATALOG', '/test/'); 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', '/var/www/html/test/'); 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', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I've been playing with the code all day, does this look wrong to anyone? Thanks in advance! Most Valuable OsCommerce Contributions: Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294 FedEx Automated Labels -- Contribution 2244 RMA Returns system -- Contribution 1136 Sort Products By Dropdown -- Contribution 4312 Ultimate SEO URLs -- Contribution 2823 Credit Class & Gift Voucher -- Contribution 282 Cross-Sell -- Contribution 5347 Link to comment Share on other sites More sharing options...
Simplyeasier Posted February 27, 2005 Share Posted February 27, 2005 I seem to be having a problem with my "test" site it is in the "/test/" subdirectory of the main site. Whaty is happening is it loads fine, you click on a page then all the other urls are modified directing back to pages on the main site and missing the "/test/" path. Here is my 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.mysite.com'); // eg, http://localhost - should not be empty for productive servers ?define('HTTPS_SERVER', 'https://www.mysite.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.mysite.com'); ?define('HTTPS_COOKIE_DOMAIN', 'www.mysite.com'); ?define('HTTP_COOKIE_PATH', '/test/cookies/'); ?define('HTTPS_COOKIE_PATH', '/test/cookies/'); ?define('DIR_WS_HTTP_CATALOG', '/test/'); ?define('DIR_WS_HTTPS_CATALOG', '/test/'); ?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', '/var/www/html/test/'); ?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', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I've been playing with the code all day, does this look wrong to anyone? Thanks in advance! <{POST_SNAPBACK}> Hi my test config looks like this // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.simplyeasier.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://simplyeasier.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.simplyeasier.com'); define('HTTPS_COOKIE_DOMAIN', 'simplyeasier.com'); define('HTTP_COOKIE_PATH', '/shoptest/catalog/'); define('HTTPS_COOKIE_PATH', '/shoptest/catalog/'); define('DIR_WS_HTTP_CATALOG', '/shoptest/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/shoptest/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', '/home/simply/public_html/shoptest/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I think you need to add the catalog to your test paths and I am not sure about your define for the DIR_FS_CATALOG Charles A kite flies highest AGAINST the wind ! "Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!" Link to comment Share on other sites More sharing options...
♥Vger Posted February 27, 2005 Share Posted February 27, 2005 DIR_FS_CATALOG /var/www/html/test/ is correct Have you got a full ssl cert installed? If you haven't then some of your ssl settings are incorrect, and you need (for the moment) to set ENABLE_SSL to false If you do not have a full ssl cert installed then these should be your other setting changes: define('HTTPS_SERVER', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_PATH', ''); Otherwise (full ssl installed) these are the changes you need to make: define('HTTP_COOKIE_PATH', '/test'); define('HTTPS_COOKIE_PATH', '/test'); define('DIR_WS_HTTP_CATALOG', '/test/'); define('DIR_WS_HTTPS_CATALOG', '/test/'); Vger Link to comment Share on other sites More sharing options...
homewetbar Posted February 27, 2005 Author Share Posted February 27, 2005 I tried these changes and no luck so far :'( I do have my own SSL certificate registered to my site. I wonder if it has something to do with the Ultimate SEO contribution although Chemo says it cannot be because the contrib unless you have any other ideas I can try with my configure.php? Thanks! Most Valuable OsCommerce Contributions: Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294 FedEx Automated Labels -- Contribution 2244 RMA Returns system -- Contribution 1136 Sort Products By Dropdown -- Contribution 4312 Ultimate SEO URLs -- Contribution 2823 Credit Class & Gift Voucher -- Contribution 282 Cross-Sell -- Contribution 5347 Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2005 Share Posted February 27, 2005 Keith, That configuration looks OK. Remove the password protection from the test directory and let us take a look at how the URLs are being formed. To be honest, nobody has confirmed there is a problem except you. Now, I don't doubt you are having an issue however being able to see it with my own eyes or hearing the feedback of others would most likely ensure the problem gets resolved faster. Bobby Link to comment Share on other sites More sharing options...
homewetbar Posted February 27, 2005 Author Share Posted February 27, 2005 Keith, That configuration looks OK. Remove the password protection from the test directory and let us take a look at how the URLs are being formed. To be honest, nobody has confirmed there is a problem except you. Now, I don't doubt you are having an issue however being able to see it with my own eyes or hearing the feedback of others would most likely ensure the problem gets resolved faster. Bobby <{POST_SNAPBACK}> Ok, you should be able to view it now http://www.homewetbar.com/test/ Most Valuable OsCommerce Contributions: Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294 FedEx Automated Labels -- Contribution 2244 RMA Returns system -- Contribution 1136 Sort Products By Dropdown -- Contribution 4312 Ultimate SEO URLs -- Contribution 2823 Credit Class & Gift Voucher -- Contribution 282 Cross-Sell -- Contribution 5347 Link to comment Share on other sites More sharing options...
mwarren Posted February 28, 2005 Share Posted February 28, 2005 I have almost the same issue as Keith. Every time I go to a secure page, my browser says "The connection to dandlgroceries.com has been terminated unexpectedly". This is when I try to go to a secure page like "login.php". I am using a shared SSL connection. Here is my configuration file. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://dandlgroceries.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://dandlgroceries.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'dandlgroceries.com'); define('HTTPS_COOKIE_DOMAIN', 'dandlgroceries.com'); define('HTTP_COOKIE_PATH', '/shop/'); define('HTTPS_COOKIE_PATH', '/shop/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); 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', '/home/dandlgro/public_html/shop/'); 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 NULL for productive servers define('DB_SERVER_USERNAME', 'dandlgro_osc1'); define('DB_SERVER_PASSWORD', 'FfbUsNx[RuGU'); define('DB_DATABASE', 'dandlgro_osc1'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Link to comment Share on other sites More sharing options...
ArtRat Posted February 28, 2005 Share Posted February 28, 2005 mwarren if that is your real password you posted, you had most likely change it now. you just posted to the world how to access your database. Link to comment Share on other sites More sharing options...
mwarren Posted February 28, 2005 Share Posted February 28, 2005 Thank you for telling me that. I did not realize. I will change it once everything goes live. Could you tell me what is the best way to change the password. ;) Link to comment Share on other sites More sharing options...
ArtRat Posted February 28, 2005 Share Posted February 28, 2005 login to your cpanel. go to your database area. create a new user and password. set that new user to have full permissions to that database. then open your catalog AND admin configure.php's and edit the old pasword to the new. test test. delete old user in cpanel or take away its permissions from using that database. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.