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_SSL fields 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');
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

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!