OsCommerce can be setup with a shared or a dedicated SSL certificate to help protect your customer's personal information.

OsCommerce Shared SSL Setup

1. Locate your configure.php file in your shopping cart folder which is in the includes folder, for example: /public_html/cart/includes/configure.php

2.  Open the file and find this series of code:

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

3. You will need to modify the HTTPS_SERVER and HTTPS_COOKIE_DOMAIN fields with your account information, and change ENABLE_SSL to "true." The format is as follows:

https://securexx.webhostinghub.com/~username

  • "securexx" will be server that your account is hosted on, for example if your account is on the ehub22 server, then you would use secure22 as the server name.
  • "username" is your cPanel username with Web Hosting Hub

4. Save the file, and your cart is now configured to use the shared SSL.

OsCommerce Dedicated SSL Setup

Dedicated SSL certificates are set up the same as the shared SSL, but you will use your domain name instead of the server name.  In the example below I have used Web Hosting Hub's website:

define('HTTP_SERVER', 'http://webhostinghub.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://webhostinghub.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', 'webhostinghub.com')

4. Save the file, and your cart is now configured to use a dedicated SSL.

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!

Did you find this article helpful?

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.

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!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

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

Not a Customer?

Get web hosting from a company that is here to help.