PDA

View Full Version : links requiring ssl don't work???


b_heyer
8-13-03, 01:57 PM
I can't get the links that require ssl to work, I am not sure what I need to edit (changing config.php didn't change anything and I can't find anything in the admin panel). I can't even login to a fake account (won't load the login page).

www.designsofmontage.com

any ideas what I have to change???

liongate2000
8-13-03, 05:35 PM
edbot
powweb staff

Registered: Apr 2003
Location: Powweb HeadQuarters
Posts: 50
Hi,

Typically, the symptoms you have described are caused by a security setting in IE (internet explorer) that has been set to high. I reccommend putting your security setting to "default". Also check your cookies preferences. You can check your setting in IE by going to the menu bar above the browser, then TOOLS, INTERNET OPTIONS.


__________________
You can learn more about our service and features by logging onto http://support.powweb.com .

b_heyer
8-13-03, 09:11 PM
sorry that didn't work, any other ideas?

stevel
8-13-03, 10:00 PM
You have essentially the same problem (and solution) as this guy (http://forum.powweb.com/showthread.php?s=&threadid=24419).

b_heyer
8-20-03, 03:31 PM
That doesn't work either, I have tried many combinations, and none seem to work, what should be the proper format for the ssl link? www03.powweb.com or www.mydomain.com? the second one returns the certificate atleast, even if hte page doesn't display, but the first one doesn't display anything.

b_heyer
8-20-03, 03:34 PM
The admin control panel also says that the site isn't protected by ssl....

liongate2000
8-20-03, 05:01 PM
My admin control panel says the same thing, but when I proceed through checkout, I am taken to a secure page and the yellow is located at the bottom of my explorer window. I think that is a sign of security. I'm not sure why admin doesn't recognize it.

I'm stumped...

As for your SSL, I notice that yours is set up differently than mine. When I click on a secure page, I am taken here:

https://cepheid.powweb.com:11926/catalog/login.php.....

However, when I click on a secure page on your site, I am directed here:

https://www03.powweb.com:11934/www/m/montage/htdocs/wholesale/catalog/login.php.....

Recheck your settings in configure.php

try this:

define('HTTPS_SERVER', 'https://www03.powweb.com:11934);

and

('HTTPS_COOKIE_DOMAIN', 'https://www03.powweb.com:11934);

You might want to make sure that the following paths include your /wholesale/ directory. (I'm not sure about these though so BACK UP FIRST!

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


Hope this helps!

Jonathan

stevel
8-20-03, 05:32 PM
At the time I looked, you had a trailing or leading blank in the definition for the https path.

b_heyer
8-27-03, 05:03 PM
lion - thanks for the suggestions, I changed it back to what it was, minus the trailing/leading spaces, but there is no "HTTPS_COOKIE_DOMAIN" in config.php

Also where did you want me to look for those other definitions?

Finally, when I goto https://www03.powweb.com:11934 it works fine, and even https://www03.powweb.com:11934/wholesale/catalog/ but if I add account.php to that, it wont work, however default.php does work fine. Very odd :-/ It doesn't seem like it has anything to do with configure.php anymore, something else maybe?

liongate2000
8-27-03, 05:54 PM
Try this:

Backup your configure.php file.

Copy the following code and paste it into a new notepad document.

Make changes to the areas that I have highlighted in bold.
Note: you will need to have a mysql database setup with powweb. This can be accomplished in the member ops area.

Save the new notepad document as configure.php.

Upload the new configure.php to the powweb server using an ftp program.

Hopefully this will work for you. If it does not work, simply upload your backup copy of configure.php via the ftp server.



<?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://www.designsofmontage.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://www.designsofmontage.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.designsofmontage.com');
define('HTTPS_COOKIE_DOMAIN', 'www.designsofmontage.com');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/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', '/www/m/montage/htdocs/wholesale/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', 'mysql04.powweb.com'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', 'YourmysqldatabaseUsername');
define('DB_SERVER_PASSWORD', 'yourmysqldatabasepassword');
define('DB_DATABASE', 'yourmysqldatabasename');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>


Please note: I am totally new to php and don't even understand half of the above code. I do understand that this configuration is working for me with powweb hosting. Perhaps one of the more experienced members can help a little too. Please let me know if I have forgotten anything.

Good luck!

Liongate

b_heyer
8-27-03, 06:12 PM
ok I tried that and got this as an error:
Warning: main(DIR_WS_TEMPLATESmainpage.tpl.php): failed to open stream: No such file or directory in /www/m/montage/htdocs/wholesale/catalog/default.php on line 161

Fatal error: main(): Failed opening required 'DIR_WS_TEMPLATESmainpage.tpl.php' (include_path='.:/usr/local/lib/php') in /www/m/montage/htdocs/wholesale/catalog/default.php on line 161

b_heyer
8-27-03, 06:20 PM
I added in the definitions that were missing from my templates...

what MS are you running? the default one with powweb? (2.1 I believe)

It seems to be working with your definitions ( I had to add a few things and take out a few slashes) but the SSL links still wont work like this one for instance:
https://www03.powweb.com:11934/wholesale/catalog/account.php?osCsid=b52ffdbe9362f491efb0b1f5434d89d f

liongate2000
8-28-03, 04:09 PM
I am clueless as to why your ssl isn't working. Have you tried posting on the osc forum? They may be able to offer some advice. Perhaps one of the moderators can help.

I am running version: oscommerce-2.2ms2.

Here's something else I noticed that is different between our sites.

I preformed these same functions on both sites:

First I typed the homepage into the browser window.

Then I clicked on a product.

Next, I added the product to the cart.

Finally I clicked the checkout link.

On my site, the checkout link directed me here:

https://cepheid.powweb.com:11926/catalog/login.php?osCsid=a1db6f2e25721cb400bdb45c0686354d

On your site, the checkout link directed me here:

https://www03.powweb.com:11934/wholesale/catalog/checkout_shipping.php?osCsid=7bfa2704bdd5975be0d74 3f2a60f2e02

I'm not sure why the same functions would direct to different php files on the two sites. Unless, it is because we are not running the same version of OSC.

I do remember reading on the osc forum that ms2 fixed some of the issues with shared ssl. You may want to reinstall the newer version. You should be able to import your product database after installing ms2 (not that I would know how to do it), but I don't think you will be able to save any of the formatting changes that you have made to date. I may be wrong on this so, please, check out the osc forum prior to making a decision. The search engine over there is pretty useful if you use * as a wildcard.

Good luck!

Liongate

stevel
8-28-03, 04:24 PM
The 2.2 install offers an "upgrade" option that will preserve your data. Any source changes you made will be gone.

I don't see any difference in shared SSL support between 2.1 and 2.2.

b_heyer
8-28-03, 09:08 PM
yeah there is no way I want to upgrade to MS2.2 because I have custom taylored a lot of the files include a template set up and a lot of changes to the templates. I just posted on osC we'll see what they say here and if I find a fix I'll post it here! (do any of the sysadmin looking know what could be going wrong?)

b_heyer
8-29-03, 12:28 PM
just so we can cross reference, this is my osC post, and thanks to whoever it was that fixed my typo there! :-D

http://forums.oscommerce.com/viewtopic.php?p=221447#221447