osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Changing over to SSL after non-SSL install?

This is a discussion on Changing over to SSL after non-SSL install? within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Okay, so this may be posted somewhere on the site but I have not been able to find it after ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 01-06-2008, 01:53 PM
New Member
 
Join Date: Jan 2008
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
osc snob is on a distinguished road
Default Changing over to SSL after non-SSL install?

Okay, so this may be posted somewhere on the site but I have not been able to find it after over an hour of looking, so here it is:

I installed Oscmax 2.0 to mess around and see if it worked. It did. Me likey. I am now ready to implement the site and need to use an ssl (shared from 1and1.com.)

My question is how to get the site/check-out and admin ported over to the ssl from a preceding straight up install?

Thanks

Snobbie D.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-06-2008, 02:25 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,190
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Changing over to SSL after non-SSL install?

That is pretty easy to do. Just edit the includes/configure.php file and change the SSL parameters in there to match your server's ssl url and path.


/includes/configure.php
PHP Code:

  define
('HTTP_SERVER''http://www.domain.com');
define('HTTPS_SERVER''https://www.secure-domain.com/~username');
define('ENABLE_SSL'true);
define('HTTP_COOKIE_DOMAIN''www.domain.com');
define('HTTPS_COOKIE_DOMAIN''https://www.secure-domain.com/~username');
define('HTTP_COOKIE_PATH''/catalog_name/');
define('HTTPS_COOKIE_PATH''/catalog_name/');
define('DIR_WS_HTTP_CATALOG''/catalog_name/');
define('DIR_WS_HTTPS_CATALOG''/catalog_name/'); 
Notice that 'your-site.com' is not the same as 'www.your-site.com'. If your SSL Cert is registered with the domain 'www.your-site.com' you will need to replace all instances of 'your-site.com' with 'www.your-site.com'


admin/includes/configure.php
PHP Code:

  define
('HTTP_SERVER''http://your-site.com');
define('HTTPS_SERVER''https://secure-domain.com/~username');
define('ENABLE_SSL'true);
define('HTTP_COOKIE_DOMAIN''your-site.com');
define('HTTPS_COOKIE_DOMAIN''secure-domain.com');
define('HTTP_COOKIE_PATH''/catalog_name/');
define('HTTPS_COOKIE_PATH''/catalog_name/');
define('DIR_WS_HTTP_CATALOG''/catalog_name/');
define('DIR_WS_HTTPS_CATALOG''/catalog_name/'); 
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-07-2008, 11:05 AM
New Member
 
Join Date: Nov 2004
Posts: 10
Thanks: 1
Thanked 3 Times in 1 Post
Rep Power: 0
Asgoroth is on a distinguished road
Default Re: Changing over to SSL after non-SSL install?

I am going through this issue as well. I have been working with the two config files. The secure part seems to function. But, all images that are in the /image directory are not showing when using the HTTPS:// I have configured the hosts "Hotlink Protection" and it does not seem to be the issue. I have been searching and all info I have found so far does not seem to be at fault.

Here is the current config.php (The production has 'ENABLE_SSL' set to false at the moment.)
Code:
  define('HTTP_SERVER', 'http://www.pettents.org'); // eg, http://localhost - should not be empty for productive servers
  define('HTTPS_SERVER', 'https://www.pettents.org'); // eg, https://localhost - should not be empty for productive servers
  define('ENABLE_SSL', true); // secure webserver for checkout procedure?
  define('HTTP_COOKIE_DOMAIN', 'www.pettents.org');
  define('HTTPS_COOKIE_DOMAIN', 'www.pettents.org');
  define('HTTP_COOKIE_PATH', '/cart/');
  define('HTTPS_COOKIE_PATH', '/cart/');
  define('DIR_WS_HTTP_CATALOG', '/cart/');
  define('DIR_WS_HTTPS_CATALOG', '/cart/');
  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/');

Last edited by Asgoroth; 01-07-2008 at 11:18 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
catalog/install/install.php?step=2 repeats devarajan.g osCommerce 2.2 Installation Help 2 12-19-2004 08:54 PM
Changing Boxes dallibab osCMax v1.7 Discussion 1 08-16-2004 07:07 PM
changing from ms2.2 to MAX 1.5.5 Geotex osCMax v1.7 Installation 6 12-31-2003 11:49 AM
/catalog/install/install.php?step=2 just hanging geller osCommerce 2.2 Installation Help 0 12-03-2003 02:34 PM
Rerunning install vs. changing configure.php rd42 osCommerce 2.2 Installation Help 1 03-29-2003 03:49 PM


All times are GMT -8. The time now is 03:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax