Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Installation Problem


amorgan

Recommended Posts

I read in the .htaccess file that I must make an adjustment to the file for SSL to work. When I make the adjustment, the entire site crashes. Can anyone help me with setting up oscommerce to work with my SSL? This is a shared server...

Link to comment
Share on other sites

I was able to get SSL working with a shared server by editing the paths in admin/includes/configure.php. However, because of the difference is paths between http and https, I set the HTTP_CATALOG_SERVER to be the same as HTTPS_CATALOG_SERVER. This makes it so when you click online catalog from the administration tool you get a secure version of the online catalog, but at least it works.

 

This is how that section of my configure.php looks now. I replace my secure server name with secureserver.com and replaced my domain name without the .com or .org on the end with domainname. On some hosts, www should be replaced by httpdocs or public_html.

 

  define('HTTP_SERVER', 'https://secureserver.com'); // eg, http://localhost or - https://localhost should not be empty for productive servers

 define('HTTP_CATALOG_SERVER', 'https://secureserver.com');

 define('HTTPS_CATALOG_SERVER', 'https://secureserver.com');

 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 define('DIR_FS_DOCUMENT_ROOT', '/www/domainname'); // where the pages are located on the server

 define('DIR_WS_ADMIN', '/domainname/catalog/admin/'); // absolute path required

 define('DIR_FS_ADMIN', '/www/domainname/catalog/admin/'); // absolute pate required

 define('DIR_WS_CATALOG', '/domainname/catalog/'); // absolute path required

 define('DIR_FS_CATALOG', '/www/domainname/catalog/'); // absolute path required

In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...