How to configure OsCommerce with SSL

m (Created page with "<div align=justify>Ecommerce is getting more and more popular nowadays. However, several factors need to be considered before starting online business. So, to start a eCommerce s...")
 
m
 
Line 1: Line 1:
<div align=justify>Ecommerce is getting more and more popular nowadays. However, several factors need to be considered before starting online business.
+
<seo title="SSL for OsCommerce" metakeywords="ssl not working, oscommerce ssl" metadescription="How to configure OsCommerce with SSL" /><div align=justify>For your online shop to function properly, SSL certificate is required. In order to configure osCommerce to work with SSL, you need to make sure it is alreay installed for your account, then open the file '''''public_html/catalog/includes/configure.php''''' and make the following changes:</div>
So, to start a eCommerce site you'll need the following:
+
  
'''''1.''''' Shopping cart, which is used to display your products.
 
'''''2.''''' A merchant account. This tool is needed to accept payments using credit card
 
'''''3.''''' Secure servers (SSL cert) for accepting credit card payment or other personal payment information online
 
  
As far as SSL certificates are concerned, there are two options:
+
define('HTTP_SERVER', 'http://www.yourdomain.com'); // e.g., http://localhost - should not be empty for productive servers
 +
define('HTTPS_SERVER', 'https://yourdomain.com'); // e.g., https://localhost - should not be empty for productive servers
 +
define('ENABLE_SSL', true); // secure webserver for checkout procedure
 +
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
 +
define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');
 +
define('HTTP_COOKIE_PATH', '/catalog/');
 +
define('HTTPS_COOKIE_PATH', '/catalog/'); 
 +
define('DIR_WS_HTTP_CATALOG', '/catalog/');
 +
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
  
* Use shared SSL certificate. It is already installed on the server and can be accessed at http://hostname/~username.
+
<div align=justify>Once done, open '''''public_html/catalog/admin/includes/configure.php''''' file, which is responsible for the admin area configurations, and do the same changes there.
* Purchase a dedicated SSL certificate. After purchasing it will need to be installed for your account on the server.
+
 
+
Installing eCommerce software is now a piece of cake as it can be done within just several clicks from your cPanel => Fantastico.
+
There are several oprions there:
+
* OsCommerce
+
* CubeCart
+
* Zen Cart
+
 
+
For your online shop to function properly, SSL certificate is required. In order to configure osCommerce to work with SSL, you need to make sure it is alreay installed for your account, then open the file '''''public_html/catalog/includes/configure.php''''' and make the following changes:
+
 
+
define('HTTP_SERVER', 'http://www.yourdomain.com'); // e.g., http://localhost - should not be empty for productive servers
+
define('HTTPS_SERVER', 'https://yourdomain.com'); // e.g., https://localhost - should not be empty for productive servers
+
define('ENABLE_SSL', true); // secure webserver for checkout procedure
+
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
+
define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');
+
define('HTTP_COOKIE_PATH', '/catalog/');
+
define('HTTPS_COOKIE_PATH', '/catalog/');
+
define('DIR_WS_HTTP_CATALOG', '/catalog/');
+
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
+
 
+
Once done, open '''''public_html/catalog/admin/includes/configure.php''''' file, which is responsible for the admin area configurations, and do the same changes there.
+
  
 
'''''Note:''''' In this example we are configuring an osCommerce installation for yourdomain.com. Make sure to change it to your actual domain name.</div>
 
'''''Note:''''' In this example we are configuring an osCommerce installation for yourdomain.com. Make sure to change it to your actual domain name.</div>

Latest revision as of 06:29, 26 January 2012

rss feed for my website