This article will explain how to set up your OsCommerce or Zen Cart shopping cart with either a shared or a dedicated SSL certificate. Dedicated SSL certificates must be purchased from us or another vendor and will show your domain name in the address bar, while our free shared SSL certificates will show our machine name with your username, in the format of https://secureXX.inmotionhosting.com/~userna5

These instructions are mainly aimed at OsCommerce, but the same settings are applied to Zen Cart, minus the COOKIE_DOMAIN options.

Shared SSL Setup

Locate your configure.php file, absolute to the location of your shopping cart. The file location starts at the root folder for your application and is then located at /includes/configure.php, so if you had set up the application at example.com/cart your configure.php file would be located at the following:

/public_html/cart/includes/configure.php

If the cart is installed at the main domain, such as example.com, then the file would be found at the following path:

/public_html/includes/configure.php

Specifically, you'll want to pay attention to these lines:

define('HTTP_SERVER', 'http://yourdomain.com'); // eg, http://localhost -
should not be empty for productive servers
define('HTTPS_SERVER', 'https://secureXX.inmotionhosting.com/~userna5'); // eg,
https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'yourdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'secureXX.inmotionhosting.com/~userna5');

 

http://yourdomain.com'); // eg, http://localhost - should not be empty for productive servers

You'll need to modify the HTTPS_SERVER, HTTPS_COOKIE_DOMAIN, and ENABLE_SSLfields with your account information. The format is as follows:

https://secureXX.inmotionhosting.com/~userna5

"secureXX" will represent the server your account is located on, so you will need to make sure the server number is correct. If you are not sure, please refer to your Welcome email or contact support.

"userna5" will represent your InMotion account username Once this information is saved, your cart will switch to the SSL server whenever a customer logs in or goes to checkout.

Dedicated SSL Setup

Dedicated SSL certificates are set up the same as the shared, only you use your domain rather than the machine name:

define('HTTP_SERVER', 'http://yourdomain.com'); // eg, http://localhost - should not be empty 
for productive servers
define('HTTPS_SERVER', 'https://yourdomain.com'); // eg, https://localhost - should not be
empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'yourdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');
Like this Article?
scottenj 2013-03-08 7:43 pm
The file for my OSCommerce install are in different places than the article lists. Also, after doing this I am getting errors trying to place an order.

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Brad Markle, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

We've been listening!

2013-03-11 08:23 am
Added more detail regarding locating the configure.php file

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. Can't upload to wordpress media library
  2. Old Email address-I need to update to a new one
  3. training SpamAssassin using sa-learn?

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!