Stevo_ Posted May 31, 2005 Share Posted May 31, 2005 Hi. I have a shared SSL, and Im trying to set it up with my store. Im hoping someone can answer a few questions. 1. Do I have to upload some files to the shared secure server? If so, what files? (Ordering, etc, or the whole store?) 2. If i have my ordering pages on this secure server, how do i setup the config files to point back to my store? When i edit the config files, (and i also uploaded the shop to the secure site), i get an error saying cannot connect to database. Shared SSL Details: > Host Name: 66.98.164.14 > UserID: [email protected] > Password: password > Your SSL web address is: https://smartysecure.com/~hjs476 Here is my config, Im hoping someone can point me in the right direction :( <?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.myshop.com.au'); // eg, http://localhost - should not be empty for productive servers ?define('HTTPS_SERVER', 'https://smartysecure.com/~hjs476'); // eg, https://localhost - should not be empty for productive servers ?define('ENABLE_SSL', true); // secure webserver for checkout procedure? ?define('HTTP_COOKIE_DOMAIN', 'www.myshop.com.au'); ?define('HTTPS_COOKIE_DOMAIN', 'https://smartysecure.com/~hjs476'); ?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', '/var/www/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', '127.0.0.1'); // eg, localhost - should not be empty for productive servers ?define('DB_SERVER_USERNAME', 'username'); ?define('DB_SERVER_PASSWORD', 'password); ?define('DB_DATABASE', 'myshop_com_au_-_shop'); ?define('USE_PCONNECT', 'false'); // use persistent connections? ?define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?// STS: ADD: Define Simple Template System files ?define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php'); ?define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); ?define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php'); ?define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/'); ?define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); ?define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); ?define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); ?define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php'); // STS: EOADD ?> Admin Config <?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.myshop.com.au'); // eg, http://localhost - should not be empty for productive servers ?define('HTTP_CATALOG_SERVER', 'http://www.myshop.com.au'); ?define('HTTPS_CATALOG_SERVER', 'https://smartysecure.com/~hjs476'); ?define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module ?define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/shop/'); // where the pages are located on the server ?define('DIR_WS_ADMIN', '/shop/admin/'); // absolute path required ?define('DIR_FS_ADMIN', '/var/www/html/shop/admin/'); // absolute pate required ?define('DIR_WS_CATALOG', '/shop/'); // absolute path required ?define('DIR_FS_CATALOG', '/var/www/html/shop/'); // 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', '127.0.0.1'); // eg, localhost - should not be empty for productive servers ?define('DB_SERVER_USERNAME', 'username'); ?define('DB_SERVER_PASSWORD', 'password'); ?define('DB_DATABASE', 'myshop_com_au_-_shop'); ?define('USE_PCONNECT', 'false'); // use persisstent connections? ?define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
Guest Posted June 1, 2005 Share Posted June 1, 2005 a shared ssl is just a 'pointer' to their ssl and your files, so no need to change/move files (unless the host requires it). this: define('HTTPS_COOKIE_DOMAIN', 'https://smartysecure.com/~hjs476'); needs to be this: define('HTTPS_COOKIE_DOMAIN', .smartysecure.com/~hjs476'); Link to comment Share on other sites More sharing options...
Stevo_ Posted June 1, 2005 Author Share Posted June 1, 2005 The reason i asked if i need to upload my files to the shared ssl server.. Is that with that config setup, when i try and order a product, the first page (checkout_shipping) , looks on the secure server :( eg. https://smartysecure.com/~hjs476/shop/check...9aa2413203e3991 So .. Its looking for my pages on the secure site, not my original domain !?!?!?!? Btw, Thanks for replying Link to comment Share on other sites More sharing options...
Stevo_ Posted June 1, 2005 Author Share Posted June 1, 2005 I get this: https://smartysecure.com/~hjs476/shop/check...176b1519df19b21 Warning: mysql_connect(): Access denied for user: '[email protected]' (Using password: YES) in /home/hjs476/public_html/shop/includes/functions/database.php on line 19 Unable to connect to database server! So im guessing that like you said, i should not have the files on the secure server. But how do i modify my config files so it stops looking on the secure site for my store files ? Steve Link to comment Share on other sites More sharing options...
Guest Posted June 1, 2005 Share Posted June 1, 2005 this has nothing to do with the shared ssl, it deals with your database connection info being incorrect Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.