Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HOw to setup SSL?


Guest

Recommended Posts

I have a web site through StartLogic, and Os Commerce.

 

I bought an SSL and I have a certifcate to use in my web page with https, but when I go into OsCommerce it goes out and live me without SSL.

 

In the admin window of Os Commerce I saw that my site is not secured ( left bottom window).

 

HOw can I solve this? Where I setup SSL for OS Commerce?

 

Julian

Link to comment
Share on other sites

The ssl certificate needs to be installed on the server. Contact your host for help with that. Then you need to enable it in your ncludes/configure.php file.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The ssl certificate needs to be installed on the server. Contact your host for help with that. Then you need to enable it in your ncludes/configure.php file.

 

Jack

 

 

Oh ok...

But what do I have to change exactly in includes/configure.php so only the checkout is secured?

 

I'm installing Authorize.Net and I guess I just need the checkout to be secured such as catalog/checkout_payment.php and maybe some others...

 

How do I do that?

Please help!

 

Mat :)

Link to comment
Share on other sites

Once the ssl cert is installed on the server, go into includes.confgure.php and fill in these fieds:

  define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_PATH', '/');

and change this

  define('ENABLE_SSL',  false);

to

  define('ENABLE_SSL', true);

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Once the ssl cert is installed on the server, go into includes.confgure.php and fill in these fieds:
  define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_PATH', '/');

and change this

  define('ENABLE_SSL',  false);

to

  define('ENABLE_SSL', true);

 

Jack

 

 

Thanks but it's not working...

I made the changes but once I try to go to my account, it switches to https and the page is not found.

 

I'm on PLESK and my root is httpdocs where all my files are.

Do I have to copy and paste all my files from httpdocs to httpsdocs to make it work?

 

Is the website still going to work out the right way if I have 2 copies of all my files in 2 different folders?

 

Please let me know...

Thanks again!!

 

Mat :)

Link to comment
Share on other sites

your host has to install the ssl cert, unless you have rights to install the cert on the server itself. and once you get that installed, then you can modify your cdonfigure.php files.

Link to comment
Share on other sites

Thanks but it's not working...

I made the changes but once I try to go to my account, it switches to https and the page is not found.

 

I'm on PLESK and my root is httpdocs where all my files are.

Do I have to copy and paste all my files from httpdocs to httpsdocs to make it work?

 

Is the website still going to work out the right way if I have 2 copies of all my files in 2 different folders?

 

Please let me know...

Thanks again!!

 

Mat :)

 

that's probably because you just copied and pasted the code the above poster supplied without entering the path of your domain. don't just put this:

 

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_PATH', '/');

 

you actually have to enter the path of you SSL domain, it has to look like this:

  define('HTTPS_SERVER', 'https://www.YOURDOMAINHERE.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_COOKIE_DOMAIN', 'www.YOURDOMAINHERE.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 

or like this (depending if the SSL cert is set up with www. or without the www):

  define('HTTPS_SERVER', 'https://YOURDOMAINHERE.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_COOKIE_DOMAIN', 'YOURDOMAINHERE.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...