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 19: Line 19:
 
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:
 
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('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('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('ENABLE_SSL', true); // secure webserver for checkout procedure  
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');  
+
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');  
define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');  
+
define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');  
define('HTTP_COOKIE_PATH', '/catalog/');  
+
define('HTTP_COOKIE_PATH', '/catalog/');  
define('HTTPS_COOKIE_PATH', '/catalog/');  
+
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');  
+
define('DIR_WS_HTTP_CATALOG', '/catalog/');  
define('DIR_WS_HTTPS_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.
 
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>

Revision as of 07:21, 4 January 2012

rss feed for my website