B271 Posted July 4, 2006 Posted July 4, 2006 Hi there, I'm new to osCommerce and am feeling a bit overwhelmed and frustrated :'( . I have tried finding answers here in the support forums and in oscdox.com, but without any real success. My host provides osc 2.2 setup via control panel and they do not provide any support. They also provide shared SSL. I figured the support issue wouldn't be a real problem since I'm usually pretty good at figuring things out (am not a computer/web newbie - just osc) and I was aware of this site for support. I am pretty sure that there are topics here that answer my questions but, after hours and hours of searching, I haven't found one that sounds like it addresses my problem. So, please forgive me if I am asking questions that have already been answered. The biggest problem I am having is with the shared SSL. I think the problem is probably in my config.php, but I have tried making changes and can't seem to solve the problem. I am listing a detailed description of my problem below along with a copy of my config files... Would getting my own certificate solve this? I know it would look a lot better to my customers. I just didn't want to open that can of worms until I had this functioning. Thanks in advance for any help you can offer. BreezyB ========================================= The Problem: Situation #1 1. Go to catalog: -http://www.mydomain.com/oscommerce2/catalog/ 2. Add item to cart: -http://www.mydomain.com//oscommerce2//catalog/shopping_cart.php 3. Click on Checkout - button link -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/checkout_shipping.php Actually takes you to: -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/login.php? 4. Enter login info and click on sign in Takes you to: -https://plus9.safe-order.net//oscommerce2//catalog/shopping_cart.php? 403 Forbidden - You don't have permission to access //oscommerce2//catalog/shopping_cart.php on this server. (Note there is no mydomain in the url) ==================================================================== Situation #2 1. Go to catalog: -http://www.mydomain.com/oscommerce2/catalog/ 2. Select Log yourself in -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/login.php 3. Enter login info and click on sign in Takes you to: -https://plus9.safe-order.net//oscommerce2//catalog/index.php? 403 Forbidden - You don't have permission to access //oscommerce2//catalog/index.php on this server. (Note there is no mydomain in the url) ===================================================================== Situation #3 1. Go to catalog: -http://www.mydomain.com/oscommerce2/catalog/ 2. Click on My Account -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/account.php 3. Takes you to: -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/login.php? 4. Enter login info and click on sign in: Takes you to: -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/account.php? (Note there IS mydomain in the url so it works) 5. Click on product: -http://www.mydomain.com//oscommerce2//catalog/product_reviews_info.php?products_id=19&reviews_id=1&... (Note you are no longer on plus9.safe-order.net) 6. Click add to cart - button link -http://www.mydomain.com//oscommerce2//catalog/product_reviews_info.php?products_id=19&reviews_id=1&action=buy_now Takes you to: -http://www.mydomain.com//oscommerce2//catalog/shopping_cart.php?reviews_id=1 (Note you are not on plus9.safe-order.net) 7. Click on Checkout - button link -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/checkout_shipping.php Actually takes you to: -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/login.php? (Note I had already logged in on plus9.safe-order.net) 8. Enter login info and click on sign in Takes you to: -https://plus9.safe-order.net//oscommerce2//catalog/shopping_cart.php? 403 Forbidden - You don't have permission to access //oscommerce2//catalog/shopping_cart.php on this server. (Note there is no mydomain in the url) ===================================================================== Here is my admin/includes config file: <?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.mydomain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com'); define('HTTPS_CATALOG_SERVER', 'https://plus9.safe-order.net'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/www/mydomain//oscommerce2//catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '//oscommerce2//catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/www/mydomain//oscommerce2//catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '//oscommerce2//catalog/'); // absolute path required define('DIR_FS_CATALOG', '/www/mydomain//oscommerce2//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', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_DATABASE', 'mydomain_com_-_oscommerce2'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Here is my catalog/includes config file: <?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.mydomain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://plus9.safe-order.net'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'mydomain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '//oscommerce2//catalog/'); define('DIR_WS_HTTPS_CATALOG', '/mydomain//oscommerce2//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', '/www/mydomain//oscommerce2//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_DATABASE', 'mydomain_com_-_oscommerce2'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
coast2co Posted July 11, 2006 Posted July 11, 2006 I suggest you purchase a cheap ssl certificate. Most shared certificates are internal routing and thus you lose you header tag reference and this means you'll lose a good crawl with google and others. You'll show up as a coding instead of product name/category. I purchased one for $112.00 for 2 years. google search cheap ssl and many will come up. Make sure you get some type of active logo appearing on your site. Security is big and customers can be cautious. Just my thoughts and my suggestion Dan Hi there, I'm new to osCommerce and am feeling a bit overwhelmed and frustrated :'( . I have tried finding answers here in the support forums and in oscdox.com, but without any real success. My host provides osc 2.2 setup via control panel and they do not provide any support. They also provide shared SSL. I figured the support issue wouldn't be a real problem since I'm usually pretty good at figuring things out (am not a computer/web newbie - just osc) and I was aware of this site for support. I am pretty sure that there are topics here that answer my questions but, after hours and hours of searching, I haven't found one that sounds like it addresses my problem. So, please forgive me if I am asking questions that have already been answered. The biggest problem I am having is with the shared SSL. I think the problem is probably in my config.php, but I have tried making changes and can't seem to solve the problem. I am listing a detailed description of my problem below along with a copy of my config files... Would getting my own certificate solve this? I know it would look a lot better to my customers. I just didn't want to open that can of worms until I had this functioning. Thanks in advance for any help you can offer. BreezyB ========================================= The Problem: Situation #1 1. Go to catalog: -http://www.mydomain.com/oscommerce2/catalog/ 2. Add item to cart: -http://www.mydomain.com//oscommerce2//catalog/shopping_cart.php 3. Click on Checkout - button link -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/checkout_shipping.php Actually takes you to: -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/login.php? 4. Enter login info and click on sign in Takes you to: -https://plus9.safe-order.net//oscommerce2//catalog/shopping_cart.php? 403 Forbidden - You don't have permission to access //oscommerce2//catalog/shopping_cart.php on this server. (Note there is no mydomain in the url) ==================================================================== Situation #2 1. Go to catalog: -http://www.mydomain.com/oscommerce2/catalog/ 2. Select Log yourself in -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/login.php 3. Enter login info and click on sign in Takes you to: -https://plus9.safe-order.net//oscommerce2//catalog/index.php? 403 Forbidden - You don't have permission to access //oscommerce2//catalog/index.php on this server. (Note there is no mydomain in the url) ===================================================================== Situation #3 1. Go to catalog: -http://www.mydomain.com/oscommerce2/catalog/ 2. Click on My Account -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/account.php 3. Takes you to: -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/login.php? 4. Enter login info and click on sign in: Takes you to: -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/account.php? (Note there IS mydomain in the url so it works) 5. Click on product: -http://www.mydomain.com//oscommerce2//catalog/product_reviews_info.php?products_id=19&reviews_id=1&... (Note you are no longer on plus9.safe-order.net) 6. Click add to cart - button link -http://www.mydomain.com//oscommerce2//catalog/product_reviews_info.php?products_id=19&reviews_id=1&action=buy_now Takes you to: -http://www.mydomain.com//oscommerce2//catalog/shopping_cart.php?reviews_id=1 (Note you are not on plus9.safe-order.net) 7. Click on Checkout - button link -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/checkout_shipping.php Actually takes you to: -https://plus9.safe-order.net/mydomain//oscommerce2//catalog/login.php? (Note I had already logged in on plus9.safe-order.net) 8. Enter login info and click on sign in Takes you to: -https://plus9.safe-order.net//oscommerce2//catalog/shopping_cart.php? 403 Forbidden - You don't have permission to access //oscommerce2//catalog/shopping_cart.php on this server. (Note there is no mydomain in the url) ===================================================================== Here is my admin/includes config file: <?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.mydomain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com'); define('HTTPS_CATALOG_SERVER', 'https://plus9.safe-order.net'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/www/mydomain//oscommerce2//catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '//oscommerce2//catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/www/mydomain//oscommerce2//catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '//oscommerce2//catalog/'); // absolute path required define('DIR_FS_CATALOG', '/www/mydomain//oscommerce2//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', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_DATABASE', 'mydomain_com_-_oscommerce2'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Here is my catalog/includes config file: <?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.mydomain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://plus9.safe-order.net'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'mydomain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '//oscommerce2//catalog/'); define('DIR_WS_HTTPS_CATALOG', '/mydomain//oscommerce2//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', '/www/mydomain//oscommerce2//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_DATABASE', 'mydomain_com_-_oscommerce2'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
B271 Posted July 11, 2006 Author Posted July 11, 2006 Thanks Dan. I don't mind getting my own cert but will that solve the problems that I am having now? I suggest you purchase a cheap ssl certificate. Most shared certificates are internal routing and thus you lose you header tag reference and this means you'll lose a good crawl with google and others. You'll show up as a coding instead of product name/category. I purchased one for $112.00 for 2 years. google search cheap ssl and many will come up. Make sure you get some type of active logo appearing on your site. Security is big and customers can be cautious. Just my thoughts and my suggestion Dan
Daemonj Posted July 11, 2006 Posted July 11, 2006 Make the following modifications to you includes/configure.php file: define('DIR_WS_HTTP_CATALOG', '/oscommerce2/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/mydomain/oscommerce2/catalog/'); Your problem is with the double slashes (i.e. //). Also, http://www.instantssl.com (InstantSSL) is the best place for cheap certs that are accepted by most browsers. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
B271 Posted July 11, 2006 Author Posted July 11, 2006 Thanks Jim. The double slashes were there from my host's setup. I thought they looked odd but figured they were supposed to be that way. I'll try changing them this afternoon and see what happens. :) Make the following modifications to you includes/configure.php file: define('DIR_WS_HTTP_CATALOG', '/oscommerce2/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/mydomain/oscommerce2/catalog/'); Your problem is with the double slashes (i.e. //). Also, http://www.instantssl.com (InstantSSL) is the best place for cheap certs that are accepted by most browsers.
Daemonj Posted July 11, 2006 Posted July 11, 2006 You also need to make the following additional edits: define('HTTPS_COOKIE_DOMAIN', 'plus9.safe-order.net/mydomain'); define('HTTPS_COOKIE_PATH', '/plus9.safe-order.net/mydomain/'); Getting your own SSL cert will definitely make your life and configuration easier. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
OratIos Posted July 11, 2006 Posted July 11, 2006 i have another problem with shared SSL and i need your Help (Expirience), so i am not making a new topic and i post here my questions. First of all my website is http://www.domain.com and the secure url is https://secure1.provider.com/domain/ My whole site is in the following root /var/www/html/ there is also a folder named "secure" n the /var/www/html/secure/ .My provider tells me that i have to put the files in the secure folder to be secured.I don't want to dublicate my site once in the /var/www/html/ and in the /var/www/html/secure/ so i have two questions (Choices) 1) Can i make any changes in the configure.php files in order to be my site secured without moving any files in the "secure" folder and working fine as well??? 2) If i cannot do that, if i move my whole site to the /var/www/html/secure/ folder, and making the proper changes to to configire files i will have any trouble?? I will post also my includes/configure.php file in order to give me some advice in how i must modify it for each case to have my site proper installed!!Thanks in advance. /includes/configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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.domain.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', 'domain.com'); define('HTTP_MAIL_DOMAIN', 'domain.com'); define('HTTPS_COOKIE_DOMAIN', 'domain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); 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', '/var/www/html/'); 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', 'xxxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxxx'); define('DB_DATABASE', 'xxxxxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
Daemonj Posted July 11, 2006 Posted July 11, 2006 Ask your host to create a symlink for the https folder to point to the http folder and that way you will not need to have 2 separate copies of your site. Your configure.php file should look like: define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://secure1.provider.com/domain'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'domain.com'); define('HTTP_MAIL_DOMAIN', 'domain.com'); define('HTTPS_COOKIE_DOMAIN', 'secure1.provider.com/domain/'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/secure1.provider.com/domain/'); 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', $_SERVER['DOCUMENT_ROOT' . '/'); You should have been able to run the install script without importing the database to have gotten it setup properly. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
OratIos Posted July 14, 2006 Posted July 14, 2006 Thank you Daemonj for your answer, but now i have a log in problemm i cannot solve!!As i said my index.php file is in the root /var/www/html/domain/index.php All site looks perfect but my problem is that when a customer tries to login freom the index.php page the site redirects him at the secured one and it shows him that he have got logged in correctly, BUT after that if he clicks over a products its automatically logged out!!So noone can make a checkout.........I think that the proble has to be with the COOKIE path which i modified a lot and i cannot find a solution!!!Please in someone can give me his advice i would be gratefull.... My /domain/includes/configure.php file is: define('HTTP_SERVER', 'http://www.domain.com/domain'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://secure1.provider.com/domain'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'secure1.provider.com/domain'); define('HTTP_MAIL_DOMAIN', 'domain.com'); define('HTTPS_COOKIE_DOMAIN', 'secure1.provider.gr/domain'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); 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', 'domain/pub/'); define('DIR_FS_CATALOG', 'var/www/html/domain/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'secure/domain/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'domain/pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'xxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'xxxxxxxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
kenshin Posted August 24, 2006 Posted August 24, 2006 Thank you Daemonj for your answer, but now i have a log in problemm i cannot solve!!As i said my index.php file is in the root /var/www/html/domain/index.php All site looks perfect but my problem is that when a customer tries to login freom the index.php page the site redirects him at the secured one and it shows him that he have got logged in correctly, BUT after that if he clicks over a products its automatically logged out!!So noone can make a checkout.........I think that the proble has to be with the COOKIE path which i modified a lot and i cannot find a solution!!!Please in someone can give me his advice i would be gratefull.... My /domain/includes/configure.php file is: define('HTTP_SERVER', 'http://www.domain.com/domain'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://secure1.provider.com/domain'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'secure1.provider.com/domain'); define('HTTP_MAIL_DOMAIN', 'domain.com'); define('HTTPS_COOKIE_DOMAIN', 'secure1.provider.gr/domain'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); 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', 'domain/pub/'); define('DIR_FS_CATALOG', 'var/www/html/domain/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'secure/domain/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'domain/pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'xxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'xxxxxxxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Where you able to fixed this problem?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.