Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enabling SSL in an installed osCommerce


mattashwood

Recommended Posts

Hi there,

 

I forgot to enable SSL it seems when setting up osCommerce initially

 

now I've got the includes/configure.php and the admin/includes/configure.php up and have marked ENABLE_SSL as true in both

 

But I'm confused as to what to input for where it asks for HTTPS_SERVER

 

I'm not much of a coder, I can figure most things out tho, but I'm not even sure what I'm even supposed to put here ;)

 

Here's what it's like for each

 

the regular config:

  define('HTTP_SERVER', 'http://www.pawsitivecomfort.ca'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://www.pawsitivecomfort.ca'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/shop/');

 

and the admin:

  define('HTTP_SERVER', 'http://www.pawsitivecomfort.ca'); // eg, [url="http://localhost"]http://localhost[/url] or - [url="https://localhost"]https://localhost[/url] should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', '');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/admin/');

 

 

I'm trying to get a chase paymentech solution set up for this, and it has been beyond a pain for me (getting that darn 337 error)

 

I know SSL needs to be enabled from what I've read on other forum posts so I figure this could help

 

 

Any help would be much appreciated!

Link to comment
Share on other sites

the tip is already in the file/code you posted: only difference is HTTPS_SERVER has an "s" after http.

btw, you must have a dedicated or shared SSL before you enable SSL in the configure.php.

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

define('HTTPS_SERVER', 'http://www.pawsitivecomfort.ca'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 

should be

define('HTTPS_SERVER', 'https://www.pawsitivecomfort.ca');

 

or asking your hosting company on ssl path.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...