Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL driving me nuts!


PartyMania

Recommended Posts

Hey guys, been tinkering with this SSL cert for hours now and no matter what I do I can't seem to get it to work. The site is located at: http://www.partymaniaonline.com. The following is a list of steps I've taken:

 

1- Purchased a SSL cert through godaddy.com. (they seemed cheap)

2- Uploaded the cert via my hosts control panel

3- Edited my catalog/included/configure.php to enable SSL. (pasted contents below)

4- Stuck and any time I try to display a https:// page it gives me an error page.

 

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.partymaniaonline.com'); // eg, http://localhost - should not be empty for productive servers  
 define('HTTPS_SERVER', 'https://www.partymaniaonline.com'); // eg, https://localhost - 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', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/partyma/public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('USE_PCONNECT', 'false'); // use persistent connections?

Link to comment
Share on other sites

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');

define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com');

 

And after installing the cert via your hosting control panel - you did get your hosting company to reboot the httpd conf files didn't you?

 

Vger

Link to comment
Share on other sites

Alright, so I now have a static IP for my host AND apache was restarted. Now whenever I try to access any page that should be secure (starts with https://) i get a 'page can not be displayed' error.

 

When I set up my SSL cert it created another folder 'SSL' in the root directory next to the 'Public_HTML' folder. I've tried moving files into this 'SSL' folder, but they still do not show up. Any help please?

Link to comment
Share on other sites

You would have been better off following Mibble's advice. Now you have an SSL cert, but you still have the same hosting company and this two folder system they are using for ssl.

 

You can ask your host how to get around this problem - but judging by their previous lack of knowledge I'm not sure they'll be much help - sorry!

 

Vger

Link to comment
Share on other sites

YES!! finally it works. I sent ALL the info to my host and they did something to make the secure server work. Just a few little things to work on though, when you go to my site www.partymaniaonline.com and go to your account or to checkout none of the pictures show for some reason, and the padlock doesn't show up. Anyone have any ideas?

Link to comment
Share on other sites

If the padlock and images are not showing then it's not a little problem. It basically means that it's still not set up correctly.

 

Just took a look at your site, and the certificate has been issued to partymania.com and not www.partymania.com, so any links to https pages throws up an ssl warning box. If the company you bought it from offers a re-issue for free then I would get it re-issued to www.partymania.com. Of course, it will then have to be reinstalled!

 

Vger

Link to comment
Share on other sites

sounds like the host wanted you to spend more money and not give you any support. anyway in your configure.php remove any 'www' you have in the domain paths until you get your ssl reissued.

Link to comment
Share on other sites

i looked at the link, you have an error somewhere in your configure.php file, as you have two // in the path. thus post your current configure.php without the db info

Link to comment
Share on other sites

I'm a tard and messed that up, that's fixed now.

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://partymaniaonline.com'); // eg, http://localhost - should not be empty for productive servers  
 define('HTTPS_SERVER', 'https://partymaniaonline.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'partymaniaonline.com');
 define('HTTPS_COOKIE_DOMAIN', 'partymaniaonline.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/partyma/public_html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Thanks for the awesome support guys. I will definitly be donating a little something :)

Link to comment
Share on other sites

define('HTTP_COOKIE_DOMAIN', 'partymaniaonline.com');

define('HTTPS_COOKIE_DOMAIN', 'partymaniaonline.com');

need to be:

define('HTTP_COOKIE_DOMAIN', '.partymaniaonline.com');

define('HTTPS_COOKIE_DOMAIN', '.partymaniaonline.com');

as the cookie paths need two 'dots'

 

 

this doesnt seem right, your host may have your system configured for http://partymaniaonline.com/ because if i go to http://partymaniaonline.com it doesnt stay that way. if this is the case, it screws things up with oscommerce.

 

also, your host may have two directories for ssl and non ssl. and duplicates need to be in each one.

Link to comment
Share on other sites

Well damn, I think I did it. I think I had a non-relative background image in the stylesheet that was messing everything up. Damn these little things! =P Finally got SSL up and running... well at least I think.

 

Anyone spot anything that isn't secure?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...