Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Setup and Integration


Dunndada

Recommended Posts

hey Team,

 

Any help would be appreciated...

 

After an OSCommerce is setup and installed.

After the SSL in initialized, and setup

 

Im having the following error.

 

https://www.dancehorizons.com/catalog is working, and the default page is secured, however any time you click on a link inside of the catalog, you are sent to the "http" pages, instead of https:

 

I modifed the configure.php files in both admin, and the catalog. but Im still having the same problem. Any ideas?

 

Thanks,

Dunndada :ph34r:

Link to comment
Share on other sites

Download the files!

There are a lot of files, and I went through a lot of them, and I tried changing a lot of them. This seems like an enormous amount of time to spend on a single URL change. There is no other, more simplistic way?

 

- dunndada :ph34r:

Link to comment
Share on other sites

Why are you choosing to use SSL for your entire site? You set the NONSSL or SSL setting for your links depending on whether you want to use encryption or not for links in your pages, but unless there is a real need to use SSL for your whole site, I would limit it to the profile and ordering pages used in the checkout process.

Link to comment
Share on other sites

PROBLEM SOLVED! Here is the solution...

 

under catalog/includes/local/configure.php

 

Modify the following:

 

  define('HTTP_SERVER', 'https://dancehorizons.com'); [code]

 

I chanaged, http:// to https://

 

This fixed all the links throughout the ssl secured site, so they point to secured pages.

 

I also modified the old, configure files in both catalog/includes/configre.php, and admin/includes/configure.php

 

 

Peace Ya'll

- dunndada :ph34r:

Link to comment
Share on other sites

There is no need to define the secure and unsecure areas in your cart, the OSC software takes care of that by itself.

 

Just define the following in catalog/includes/configure.php:

 

define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', 'https://www.domain.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.domain.com');

  define('HTTPS_COOKIE_DOMAIN', 'www.domain.com');

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

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

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

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

 

You may do the similar in admin/includes/configure.php to run your admin control panel on SSL.

Link to comment
Share on other sites

Thanks for the advise, but changing that file alone does not tell OSCommerce when to change to SSL pages. I just did it, and when I create an account, and continue to checkout, the Credit Card payment method comes up in regular http:// NOT https://

 

Care to continue?

 

- dunndada :ph34r:

Link to comment
Share on other sites

Just in case, this is what my catalog/includes/configure.php file looks like:

 

<?php

/*

  $Id: configure.php,v 1.13 2003/02/10 22:30:51 hpdl Exp $

 

  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.dancehorizons.com'); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', 'https://www.dancehorizons.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.dancehorizons.com');

  define('HTTPS_COOKIE_DOMAIN', 'www.dancehorizons.com');

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

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

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

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

  define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

  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', DIR_WS_CATALOG . 'pub/');

  define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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', ''); // eg, localhost - should not be empty for productive servers

  define('DB_SERVER_USERNAME', 'mysql');

  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'

?>

Link to comment
Share on other sites

Yes, catalog/includes/local/configure.php

 

<?

  define('HTTP_SERVER', 'https://dancehorizons.com');

  define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/pbcweb/dancehorizons.com/');

  define('DIR_FS_LOGS', '/hsphere/local/home/pbcweb/logs/dancehorizons.com');

 

  define('ENABLE_SSL', 0);

// define our database connection

  define('DB_SERVER', 'mysql.onnetsecure.net');

  define('DB_SERVER_USERNAME', 'pbcweb');

  define('DB_SERVER_PASSWORD', 'Dance1');

  define('DB_DATABASE', 'dancehorizons');

  define('CONFIGURE_STATUS_COMPLETED', 1);

  define('USE_PCONNECT', 'false');

  define('STORE_SESSIONS', 'mysql');

?>

 

This helps my problem, however I don't think that my site is anyway near secured. This is very confusing.

 

Please Advise, Anyone at all..

 

- Dunndada :ph34r:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...