osCmax v2.5 User Manual
Results 1 to 3 of 3

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 ...

      
  1. #1
    New Member
    Join Date
    Jan 2008
    Posts
    11
    Rep Power
    0


    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.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Nov 2004
    Posts
    10
    Rep Power
    0


    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 10:18 AM.

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •