Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the SSL server path


w35m17h

Recommended Posts

Posted

Hi All,

I have installed and setup my OSCommerce store. Everything is looking great except that during installation I setup the path to the SSL server on my webhost incorrectly. So when the customer goes to checkout it tells them there is a problem with the site certificate. So when changing the HTTPS_SERVER variable in the /TheRecycler/includes/configure.php to the correct path, the customer gets a blank page when trying to check out. Are there any more places I need to change? Here is a snippet of the configure.php. Thanks for any help!

 

Cheers,

Bill

 

 

 

 

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.westek.org'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://protected.networkshosting.com/westek'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.westek.org');

define('HTTPS_COOKIE_DOMAIN', 'www.westek.org');

define('HTTP_COOKIE_PATH', '/TheRecycler/');

define('HTTPS_COOKIE_PATH', '/TheRecycler/');

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

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

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/users/web/b2918/nwh.westek/TheRecycler/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Posted

Hi,

Well, I changed the path back to when it was working just complaining about SSL and now the %$$@# thing won't let me add to my cart OR checkout either....

 

Anybody out there, I've read till blue in the face. Most replies to problems like this don't seem to help.

 

Please Help,

Bill.

Posted
Hi,

Well, I changed the path back to when it was working just complaining about SSL and now the %$$@# thing won't let me add to my cart OR checkout either....

 

Anybody out there, I've read till blue in the face. Most replies to problems like this don't seem to help.

 

Please Help,

Bill.

 

Looks like you are using a shared ssl?? If so have you double checked with your hosting company to make sure that the path you are using is correct?

 

Just guessing but it may need to be

 

'https://protected.networkshosting.com/~westek'

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted
Looks like you are using a shared ssl?? If so have you double checked with your hosting company to make sure that the path you are using is correct?

 

Just guessing but it may need to be

 

'https://protected.networkshosting.com/~westek'

 

Good guess, but no. I even tried it that way but, the hosting company told me explicitly that I could serve out any file through SSL just by using the https: url above. I checked it too. For example, my company website is www.westek.org. I can connect to my website using ssl by going to url https://protected.networkshosting.com/westek

and voila my website over ssl so, ....

 

What I am doing is renameing the orig install and start a new install and use the backup to restore to the new install, then just copy the images over and hope that will fix it.

Posted
Good guess, but no.... start a new install and use the backup to restore to the new install, then just copy the images over and hope that will fix it.

any luck w/ this yet? i think i'm having the same problem, from the sound of it... i've only just got here and read through a few threads, but sounds like it couldn't get much closer to my situation... shared hosting and all...

Posted
any luck w/ this yet? i think i'm having the same problem, from the sound of it... i've only just got here and read through a few threads, but sounds like it couldn't get much closer to my situation... shared hosting and all...

 

If you haven't added any products, delete the installations and do it again, checking very carefully the paths you input into the install screens. Make sure to look at the "?," they give clues to the format.

 

If you have products, ugh.

 

What I did:

1 make sure to create the backup dir as per instructions and make a backup file.

2 rename old store subdir

3 recreate your store subdir and reinstall without installing default database and making sure ssl works and make backup dir, but don't make a backup.

3. using ftp copy backup from OLD store to NEW store backup subdir.

4. restore

5. at this point all my stuff was back minus my product pictures

6 using ftp, copy product images (/oldstore/images) to the new store install (newstore/images)

 

Sorry if this is not real clear. I haven't had my java yet...

 

Going to get coffee, if you have questions just ask, I'll try to help

 

Cheers,

Bill.

Posted
Sorry if this is not real clear. I haven't had my java yet...
oh, how well i know that feeling!!

 

anyway-- it looks like this is probably what's going on w/ my installation. i haven't revisited this since i first posted the reply above, but i'll bet it's the SSL cert, as i don't have any right now... so, i'm just going to set that up and see what happens-- i mean, obviously, if the SSL isn't working, that's a problem in and of itself, right?

 

thanks for following up on this!

Posted
oh, how well i know that feeling!!

 

anyway-- it looks like this is probably what's going on w/ my installation. i haven't revisited this since i first posted the reply above, but i'll bet it's the SSL cert, as i don't have any right now... so, i'm just going to set that up and see what happens-- i mean, obviously, if the SSL isn't working, that's a problem in and of itself, right?

 

thanks for following up on this!

 

Hey, after some coffee and asthma breathing treatment... That combo will wake you up, if not raise your bp so high as to stroke out .... no stroke yet ....

 

What I did above seems to work since I did the install with the correct ssl path. I also had to copy over any of the files that I modified like "terms of use" "shipping & return" "index" etc. Do these 1 at a time checking out your store, also rename the "old" version to something like "index.php.orig" so you can quickly recover from a bad php file.

 

It seems that when i did the install with the incorrect ssl path then try to fix it later by editing the configure.php files in /shop/includes and /admin/includes is where my problems started. So maybe the ssl gets encoded in some other php file i'm not aware of... anyway my way seems to work but it is a real p. i. a.

 

I'm happy to share what i've learned through the school of hard knocks, just shoot an email to me at bill@{nospam}westek.org

 

Cheers,

Bill.

 

PS. And best of luck!

Posted

I also forgot to mention, though you may already know this, when editing files be careful if you download, use dos/windo$z applications to edit, then upload. Unix text/config files don't work well after windows apps insert LF/CR. This REALLY screws stuff up in the Unix world. So its best to use your webhosting editor(as bad as it may be) or make sure you are using a Mac, Linux Box, or a windows app made to specifically work with Unix text files. Now putting on flame suit. If your webhosting is on a windows machine, you may not have to worry about text config file. Just worry about keeping it running more than a couple hours which is good because the script kiddies won't have enough time to hack it, hehehehe :P

 

 

Cheers,

Bill.

 

<PS I won't respond to flames about your windoze boxen and how stable it isn't, I mean is...

Posted
windoze comments weren't directed at you ...
right on... hehe...

at risk of sounding way presumptuous...

i too know all too well the... ahem... let's say...loose lips o' the ol' "synthetic adrenaline rush" you described eariler. ;)

 

in any case-- i think i'm all good so far, seeing how i finally just now had a chance to sit down and start on this. as for line feeds and carriage returns, i think i've got that bit under control as well. ;)

Archived

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

×
×
  • Create New...