Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to properly enable SSL


consciouscommerce

Recommended Posts

Hi there,

 

I setup a site without SSL then got a digital certificate and installed it to my server, now I am trying to enable my store to be SSL enabled.

 

I read several posts, and still no full success.

 

Here's what I did:

 

1. I modified my two config files, see below:

 

Store / includes / configure.php

 

<?php

// Please, note that all changes in this file will be lost

// after reconfiguring application by Plesk

define('HTTP_SERVER', 'http://printerm.com');

define('HTTPS_SERVER', 'https://printerm.com');

define('ENABLE_SSL', 'true');

define('HTTP_COOKIE_DOMAIN', 'http://printerm.com');

define('HTTPS_COOKIE_DOMAIN', 'https://printerm.com');

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

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

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

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/');

 

 

Store / admin / includes / configure.php

 

<?php

// Please, note that all changes in this file will be lost

// after reconfiguring application by Plesk

define('HTTP_SERVER', 'http://printerm.com');

define('HTTP_CATALOG_SERVER', 'http://printerm.com');

define('HTTPS_CATALOG_SERVER', 'https://printerm.com');

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/printerm.com/httpdocs');

define('DIR_WS_ADMIN', '/Store/admin/');

define('DIR_FS_ADMIN', '/home/httpd/vhosts/printerm.com/httpsdocs/Store/admin');

define('DIR_WS_CATALOG', '/Store/');

define('DIR_FS_CATALOG', '/home/httpd/vhosts/printerm.com/httpsdocs/Store/');

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/');

 

 

2. I copied my entire STORE / CATALOG directory to my SSL HTTPS directory

 

 

3. The store loads up, but when I try to goto "my account" or to "Check Out"

 

I get the following error:

 

Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/printerm.com/httpsdocs/Store/includes/application_top.php on line 309

 

I don't know how to resolve this, please if you can, help me out. Thanks

 

Brandon

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...