How to install SSL on OSC: A Simple 1-2-3 Instruction
#61
Posted 24 January 2007 - 01:02 AM
I am nearing launch on my site at www.irepairsquad.com and I'm having issues with my SSL.
The page says contains both secure and non secure links. I have checked all my img sources and
they are set relatively.
I noticed you stated that even the links need to be toward https: urls, but all of the column left links
are only http.
I'm not sure how to go about changing that or why I would want to b/c I only want the protected pages
to display the https links.
Please help me if you can, I simply want the lock to show up in Firefox.
Thank you!
James
#62
Posted 25 January 2007 - 05:21 PM
I have set my catalog/includes/configure.php and my catalog/admin/includes/configure.php files exactly as you have instructed.
The site is here.. http://goodfellasgames.com/shop/
If you go to my main shop page, you will find that the links in categories and individual products are pointing to HTTPS and not HTTP. It is my understanding that the settings for the above referenced files are correct and should only allow HTTPS of pages that require input from the customer.
Might you offer some advice for me? Here is the code from my configuration files...
catalog/admin/includes/configure.php
define('HTTP_SERVER', 'https://goodfellasgames.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'https://goodfellasgames.com');
define('HTTPS_CATALOG_SERVER', 'https://goodfellasgames.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/content/a/w/a/awarner203/html/shop/'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/shop/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/home/content/a/w/a/awarner203/html/shop/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/shop/'); // absolute path required
define('DIR_FS_CATALOG', '/home/content/a/w/a/awarner203/html/shop/'); // absolute path required
catalog/includes/configure.php
define('HTTP_SERVER', 'https://goodfellasgames.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://goodfellasgames.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'goodfellasgames.com');
define('HTTPS_COOKIE_DOMAIN', 'goodfellasgames.com');
define('HTTP_COOKIE_PATH', '/shop/');
define('HTTPS_COOKIE_PATH', '/shop/');
define('DIR_WS_HTTP_CATALOG', '/shop/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
Thanks,
Adam
#63
Posted 25 January 2007 - 05:39 PM
This is...
catalog/includes/configure.php
define('HTTP_SERVER', 'http://goodfellasgames.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://goodfellasgames.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'goodfellasgames.com');
define('HTTPS_COOKIE_DOMAIN', 'goodfellasgames.com');
define('HTTP_COOKIE_PATH', '/shop/');
define('HTTPS_COOKIE_PATH', '/shop/');
define('DIR_WS_HTTP_CATALOG', '/shop/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');
define('DIR_WS_IMAGES', 'images/');
#64
Posted 25 January 2007 - 05:44 PM
Your SSL appears to be functioning smoothly; I created an account, no problem.
Regarding your categories, I'm unsure as to why they point to https:// ... you're correct in that they should point to http:// .... not https://
In your shop/includes/configure.php file, remember, your cookie domain should have two dots in it. So instead of:
define('HTTP_COOKIE_DOMAIN', 'goodfellasgames.com');
define('HTTPS_COOKIE_DOMAIN', 'goodfellasgames.com');
It should be
define('HTTP_COOKIE_DOMAIN', '.goodfellasgames.com');
define('HTTPS_COOKIE_DOMAIN', '.goodfellasgames.com');
But I don't see how that would cause an issue with your categories. It appears you're using some sort of template system, and it may have something to do with that. Other than that, I'd really have to get in there and dig in myself to figure out exactly why it's pointing to https:// ...
Simple 1-2-3 Intructions on how to get, install and configure SSL
The Google Sandbox explained
Simple to follow instructions on how to change the look of your OSC
How To Make A Horrible OSC Website
my toolbox: PHP Designer 2007 - Winmerge - phpMyAdmin - WS_FTP - Photoshop - Paint Shop Pro - Crimson Editor
my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...
#65
Posted 25 January 2007 - 05:57 PM
jpweber, on Jan 25 2007, 12:44 PM, said:
Your SSL appears to be functioning smoothly; I created an account, no problem.
Regarding your categories, I'm unsure as to why they point to https:// ... you're correct in that they should point to http:// .... not https://
In your shop/includes/configure.php file, remember, your cookie domain should have two dots in it. So instead of:
define('HTTP_COOKIE_DOMAIN', 'goodfellasgames.com');
define('HTTPS_COOKIE_DOMAIN', 'goodfellasgames.com');
It should be
define('HTTP_COOKIE_DOMAIN', '.goodfellasgames.com');
define('HTTPS_COOKIE_DOMAIN', '.goodfellasgames.com');
But I don't see how that would cause an issue with your categories. It appears you're using some sort of template system, and it may have something to do with that. Other than that, I'd really have to get in there and dig in myself to figure out exactly why it's pointing to https:// ...
Thanks for the quick reply Jason,
I was unaware of the dot required at the start of the cookie domain, thank you, I will change that soon:)
I'm am using the Dynamenu contrib foudn here at OSC to create the fly-out menus...I dug around, but couldn't see anything that pointed to HTTPS instead of HTTP....
If you'd like to have a look around to investigate, I would be very appreciative. This has become an issue because I am trying to generate an xml sitemap and the one I have access to only follows http...not https....so no categories or products are getting listed in the sitemap;)
I'd be very grateful if you could spare the time to take a look. I can set you up with your own FTP access in a matter of a few minutes if you like????
#66
Posted 26 January 2007 - 02:06 PM
awarner20, on Jan 25 2007, 12:57 PM, said:
I was unaware of the dot required at the start of the cookie domain, thank you, I will change that soon:)
I'm am using the Dynamenu contrib foudn here at OSC to create the fly-out menus...I dug around, but couldn't see anything that pointed to HTTPS instead of HTTP....
If you'd like to have a look around to investigate, I would be very appreciative. This has become an issue because I am trying to generate an xml sitemap and the one I have access to only follows http...not https....so no categories or products are getting listed in the sitemap;)
I'd be very grateful if you could spare the time to take a look. I can set you up with your own FTP access in a matter of a few minutes if you like????
I've added the two "dots" before the cookie domain. As you said, that didn't make a difference. I am still interested in knowing why this is happening, and hopefully a solution. If anyone can offer any advice, please help:)
#67
Posted 26 January 2007 - 02:25 PM
Jason
Simple 1-2-3 Intructions on how to get, install and configure SSL
The Google Sandbox explained
Simple to follow instructions on how to change the look of your OSC
How To Make A Horrible OSC Website
my toolbox: PHP Designer 2007 - Winmerge - phpMyAdmin - WS_FTP - Photoshop - Paint Shop Pro - Crimson Editor
my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...
#68
Posted 26 January 2007 - 02:47 PM
define('HTTP_SERVER', 'http://goodfellasgames.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://goodfellasgames.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', '.goodfellasgames.com');
define('HTTPS_COOKIE_DOMAIN', '.goodfellasgames.com');
Good luck.
Simple 1-2-3 Intructions on how to get, install and configure SSL
The Google Sandbox explained
Simple to follow instructions on how to change the look of your OSC
How To Make A Horrible OSC Website
my toolbox: PHP Designer 2007 - Winmerge - phpMyAdmin - WS_FTP - Photoshop - Paint Shop Pro - Crimson Editor
my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...
#69
Posted 26 January 2007 - 11:23 PM
#70
Posted 29 January 2007 - 01:32 PM
awarner20, on Jan 29 2007, 08:27 AM, said:
Please don't take my word for it though...I am merely offering one possibility from reading posts on here the last few months...
This has nothing to do with it, Adam. Having the "www" or no "www" all depends on where the SSL company has assigned the SSL certificate to. Both are acceptable. The error is in here:
// define our database connection
define('DB_SERVER', 'localhost');
Simple 1-2-3 Intructions on how to get, install and configure SSL
The Google Sandbox explained
Simple to follow instructions on how to change the look of your OSC
How To Make A Horrible OSC Website
my toolbox: PHP Designer 2007 - Winmerge - phpMyAdmin - WS_FTP - Photoshop - Paint Shop Pro - Crimson Editor
my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...
#71
Posted 29 January 2007 - 02:26 PM
jpweber, on Jan 29 2007, 08:32 AM, said:
// define our database connection
define('DB_SERVER', 'localhost');
Sorry Jason,
I'll be more selective about sharing my "guesses" next time...
Good luck medved:)
#73
Posted 29 January 2007 - 03:30 PM
cmino, on Jan 14 2007, 02:39 AM, said:
Copy your database information (the 6 or 7 lines at the bottom of your admin/includes/local/configure_old.php file, and paste them into your admin/includes/configure.php file, overwriting the database information that isn't working.
Simple 1-2-3 Intructions on how to get, install and configure SSL
The Google Sandbox explained
Simple to follow instructions on how to change the look of your OSC
How To Make A Horrible OSC Website
my toolbox: PHP Designer 2007 - Winmerge - phpMyAdmin - WS_FTP - Photoshop - Paint Shop Pro - Crimson Editor
my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...
#74
Posted 29 January 2007 - 03:41 PM
jpweber, on Jan 29 2007, 08:28 AM, said:
// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
This is because your host set it up how they do it, now how oscommerce does it. Their mistake. Good luck and keep me posted.
#75
Posted 29 January 2007 - 04:04 PM
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '');
is it ok?
#76
Posted 29 January 2007 - 05:14 PM
define('DIR_WS_HTTPS_CATALOG', '');
change to
define('DIR_WS_HTTPS_CATALOG', '/');
Let me know when you're done; you should be all set.
Simple 1-2-3 Intructions on how to get, install and configure SSL
The Google Sandbox explained
Simple to follow instructions on how to change the look of your OSC
How To Make A Horrible OSC Website
my toolbox: PHP Designer 2007 - Winmerge - phpMyAdmin - WS_FTP - Photoshop - Paint Shop Pro - Crimson Editor
my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...
#77
Posted 29 January 2007 - 05:31 PM
jpweber, on Jan 29 2007, 12:14 PM, said:
define('DIR_WS_HTTPS_CATALOG', '');
change to
define('DIR_WS_HTTPS_CATALOG', '/');
Let me know when you're done; you should be all set.
I did but it didn't work so i did it this way
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
Now the path is ok but the site is not working with https. it works only with http.
#78
Posted 29 January 2007 - 06:24 PM
#79
Posted 29 January 2007 - 07:13 PM
medved, on Jan 29 2007, 01:24 PM, said:
I was just going to say ... it certainly appears to be working on my end.
The non-secure items popup warning (in Internet Explorer):
Somewhere on that page, you have an http:// external link. If I was a betting man, I'd say it's that flash banner you have in your header. That said ...
I'd go to your catalog/includes/header.php file and find out where that Flash coding is. It will look something similar to this:
<EMBED src="thevisiondepot.swf" width=400 height=208 align=middle swLiveConnect=true pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" LOOP=FALSE bgcolor=#808080 name="thevisiondepot">
</EMBED>
change all http:// links to https:// links so it looks like this:
<EMBED src="thevisiondepot.swf" width=400 height=208 align=middle swLiveConnect=true pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" LOOP=FALSE bgcolor=#808080 name="thevisiondepot">
</EMBED>
Save the revised catalog/includes/header file, and upload it to the proper directory on your server. Then you will not receive this popup message warning in IE.
Keep us updated.
Simple 1-2-3 Intructions on how to get, install and configure SSL
The Google Sandbox explained
Simple to follow instructions on how to change the look of your OSC
How To Make A Horrible OSC Website
my toolbox: PHP Designer 2007 - Winmerge - phpMyAdmin - WS_FTP - Photoshop - Paint Shop Pro - Crimson Editor
my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...
#80
Posted 29 January 2007 - 07:37 PM
jpweber, on Jan 29 2007, 02:13 PM, said:
The non-secure items popup warning (in Internet Explorer):
Somewhere on that page, you have an http:// external link. If I was a betting man, I'd say it's that flash banner you have in your header. That said ...
Save the revised catalog/includes/header file, and upload it to the proper directory on your server. Then you will not receive this popup message warning in IE.
Keep us updated.
And how can i make contact_us.php SSL protected? please.









