Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL setup


mossman

Recommended Posts

Good Morning Everyone,

 

We setup up our SSL over the weekend and i am now trying to get it to hook into OSC.

 

When we registered the SSL we did use the www. qualifier, and on my server everything is in the root directory (no public_html folders). The install doesn’t seem to throw any major error, it’s just not protecting the checkout page and other pages that it should be. I download the SSL Help tool that tests the install. You can view the results images here: http://www.griffinrad.com/my_enviroment.png and http://www.griffinrad.com/configure_check.png

 

Here is the code I have modified

 

CATALOG

 


<?php
/*
 $Id$

 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://griffinrad.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.griffinrad.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'griffinrad.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://www.griffinrad.com');
 define('HTTP_COOKIE_PATH', 'www.griffinrad.com');
 define('HTTPS_COOKIE_PATH', 'https://griffinrad.com');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 // define our database connection
 define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

 

ADMIN

 



<?php
/*
 $Id$

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.griffinrad.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.griffinrad.com');
 define('HTTPS_CATALOG_SERVER', 'https://griffinrad.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', '');
 define('DB_SERVER_USERNAME', 'mysql');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', '');
?>

 

Thank you for all your time!!

 

P.S. Can anyone tell me how to delete old posts?

Link to comment
Share on other sites

This is a working example of a Configure.php file:

 

define('HTTP_SERVER', 'http://www.domain.com');
define('HTTPS_SERVER', 'https://www.domain.com');
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '.domain.com');
define('HTTPS_COOKIE_DOMAIN', '.domain.com');
define('HTTP_COOKIE_PATH', '/index/');
define('HTTPS_COOKIE_PATH', '/index/');
define('DIR_WS_HTTP_CATALOG', '/index/');
define('DIR_WS_HTTPS_CATALOG', '/index/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', '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/zodlin09/public_html/index/');
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');
define('DB_SERVER_USERNAME', 'xxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql');

Link to comment
Share on other sites

This is a working example of a Configure.php file:

 

define('HTTP_SERVER', 'http://www.domain.com');
define('HTTPS_SERVER', 'https://www.domain.com');
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '.domain.com');
define('HTTPS_COOKIE_DOMAIN', '.domain.com');
define('HTTP_COOKIE_PATH', '/index/');
define('HTTPS_COOKIE_PATH', '/index/');
define('DIR_WS_HTTP_CATALOG', '/index/');
define('DIR_WS_HTTPS_CATALOG', '/index/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', '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/zodlin09/public_html/index/');
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');
define('DB_SERVER_USERNAME', 'xxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql');

 

 

Thank you, does the database section need to be filled out for it to work properly?

Link to comment
Share on other sites

If you don't have the database configurations set oscommerce can't talk to it. I would think that your site wouldn't even load.. are you seeing different results?

Link to comment
Share on other sites

If you don't have the database configurations set oscommerce can't talk to it. I would think that your site wouldn't even load.. are you seeing different results?

 

Yes, with those left empty, i am still able to view the cart and shop, just not securely: http://www.griffinrad.com/catalog

 

Also, in my want to clean up all my posts i started a new thread (this one) the orgional thread is here Click Me

Link to comment
Share on other sites

If you don't have the database configurations set oscommerce can't talk to it. I would think that your site wouldn't even load.. are you seeing different results?

 

 

You were correct... I had another config file in my includes/local/ from a previous attempt that was holding thedatabase information. Aplogies and Thanks

Link to comment
Share on other sites

  • 7 months later...

This is a working example of a Configure.php file:

 

define('HTTP_SERVER', 'http://www.domain.com');
define('HTTPS_SERVER', 'https://www.domain.com');
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '.domain.com');
define('HTTPS_COOKIE_DOMAIN', '.domain.com');
define('HTTP_COOKIE_PATH', '/index/');
define('HTTPS_COOKIE_PATH', '/index/');
define('DIR_WS_HTTP_CATALOG', '/index/');
define('DIR_WS_HTTPS_CATALOG', '/index/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', '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/zodlin09/public_html/index/');
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');
define('DB_SERVER_USERNAME', 'xxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql');

 

 

Thanks for the above post. Can i ask you few things please. I am new here.

Can you please tell me when does "/index/" mean. I have got "public_html" folder on webserver where i am copying all my catalog files. So what should be my value.

 

define('HTTP_COOKIE_PATH', '/index/');

define('HTTPS_COOKIE_PATH', '/index/');

define('DIR_WS_HTTP_CATALOG', '/index/');

define('DIR_WS_HTTPS_CATALOG', '/index/');

 

Also i need the value of

define('DIR_FS_CATALOG', '/home/zodlin09/public_html/index/');

Does it has to do with the local folder. If yes then i am using localhost/project1

 

Secondly, Could you guide me for admin/include/configure.php file. I need value of 2 lines,

 

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_FS_CATALOG', '/');

 

Please help!! Thanks so much..

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...