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?

Login to comment.

Your Opinion Matters

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

The Community Support team wrote the article you're looking at now. We like to think it's perfect, but we're sure you have some suggestions. Please, let us know what they are!

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

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