Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Install SSl from start


worldheadja

Recommended Posts

I'm a newbie so i need some help . I received my SSl after i completed the OSC installation now i dont know what to do next, i have seen were other users are having problems after they have made some changes but i'm lost i dont know the first change in getting my SSL to start showing up. The most i have gathered is to change the false to true in the configure.php inside the "includes" folder, that i did and since it didn't work i gather that there is more to it than that. I would also like to include the logo on my site.

Can someone help me..PLEEZE :D

Link to comment
Share on other sites

When you say SSL, do you mean your own full SSL certificate or do you mean access to a shared cert?

 

This advice is for if you have a full ssl cert, and for one which is made out to www.yourdomain.com, and not just to yourdomain.com (this differs according to the type of server you are on). It is also for an install into the root and not into a folder.

 

define('HTTP_SERVER', 'http://www.yourdomain.com');
define('HTTPS_SERVER', 'https://www.yourdomain.com');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

 

Don't forget your admin/includes/configure.php file!

 

Vger

Link to comment
Share on other sites

While searching for an answer to my own question about admin security I found this post.

 

I do have my own SSL cert and I was wondering where would the code go that you posted?

 

 

Thanks

Tom

 

 

When you say SSL, do you mean your own full SSL certificate or do you mean access to a shared cert?

 

This advice is for if you have a full ssl cert, and for one which is made out to www.yourdomain.com, and not just to yourdomain.com (this differs according to the type of server you are on). It is also for an install into the root and not into a folder.

 

define('HTTP_SERVER', 'http://www.yourdomain.com');
define('HTTPS_SERVER', 'https://www.yourdomain.com');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

 

Don't forget your admin/includes/configure.php file!

 

Vger

Link to comment
Share on other sites

When you say SSL, do you mean your own full SSL certificate or do you mean access to a shared cert?

 

This advice is for if you have a full ssl cert, and for one which is made out to www.yourdomain.com, and not just to yourdomain.com (this differs according to the type of server you are on). It is also for an install into the root and not into a folder.

 

define('HTTP_SERVER', 'http://www.yourdomain.com');
define('HTTPS_SERVER', 'https://www.yourdomain.com');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

 

Don't forget your admin/includes/configure.php file!

 

Vger

 

 

 

 

Thanks for assisting, my certificate is made out to "www.my_website.com" so i can use the code above but is the code above suppose to be created in a php file or am i to add it to a file that was already created.

I'm a novice to this so i dont know how to really use it. Thanks again

Link to comment
Share on other sites

Thanks for assisting, my certificate is made out to "www.my_website.com" so i can use the code above but is the code above suppose to be created in a php file or am i to add it to a file that was already created.

I'm a novice to this so i dont know how to really use it. Thanks again

Link to comment
Share on other sites

Thanks for assisting, my certificate is made out to "www.my_website.com" so i can use the code above but is the code above suppose to be created in a php file or am i to add it to a file that was already created.

I'm a novice to this so i dont know how to really use it. Thanks again

 

 

Also i dont know how i forgot to ask the most important part, is there a specific name this file should have if i am to create a php file with the above code? :(

Link to comment
Share on other sites

Also i dont know how i forgot to ask the most important part, is there a specific name this file should have if i am to create a php file with the above code? :(

 

You'll find these settings in the catalog/includes/configure.php and catalog/admin/includes/configure.php

Link to comment
Share on other sites

Hi, i just made the above code changes to both my website config.php files, now whenever i try to go to check out after i have added any items i get a "The page cannot be displayed" error message with the address looking like this "https://www.mywebsite.comcheckout_shipping.php/" .... notice there is no slash between the .com and chechout_shipping.php

Link to comment
Share on other sites

When you say SSL, do you mean your own full SSL certificate or do you mean access to a shared cert?

 

This advice is for if you have a full ssl cert, and for one which is made out to www.yourdomain.com, and not just to yourdomain.com (this differs according to the type of server you are on). It is also for an install into the root and not into a folder.

 

define('HTTP_SERVER', 'http://www.yourdomain.com');
define('HTTPS_SERVER', 'https://www.yourdomain.com');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

 

Don't forget your admin/includes/configure.php file!

 

Vger

 

 

Hi,

 

What if the ssl is shared with my hosting company? (startlogic)...How would I have to change the code? Also,

 

when you say, "Don't forget your admin/includes/configure.php file!" Do you mean we have to change the code in that file the exact same way?

 

Thank you for your help.

 

A. Iber

Link to comment
Share on other sites

Hi, i just made the above code changes to both my website config.php files, now whenever i try to go to check out after i have added any items i get a "The page cannot be displayed" error message with the address looking like this "https://www.mywebsite.comcheckout_shipping.php/" .... notice there is no slash between the .com and chechout_shipping.php

 

see the following settings in your configure.php and ensure they have the name of your root directory, in this case catalog, if thisdoesn't work then it might pay to post your config file and we'll take a look, ensure to leave out your database details.

 

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

Cheers,

Marco

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...