Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

yeah! another ssl post :-"


tar6et

Recommended Posts

Having a problem getting ssl to work. I am with yahoo for hosting and have followed every idea and set of directions I could find here on this site. ( IE: ssl for the innocent, the yahoo ssl contrib, which got me closer it would seem | and a post by alanr in the ssl guide any way here we go.

 

What is happening is whenever I try to view a secure page it is blank, no error it has a valid url, it's just blank. I fear that I have been trying to long to get this to work to see the problem even if I was looking at it . <_<

 

you can view an example HERE and just clicking on the login or create account link at the top.

 

catalog/includes/configure.php

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.ozarkherbandspice.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://s.hostingprod.com/@ozarkherbandspice.com/ssl'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.ozarkherbandspice.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://s.hostingprod.com/@ozarkherbandspice.com/ssl');
 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/');

 

and then catalog/admin/includes/configure.php

/ Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.ozarkherbandspice.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.ozarkherbandspice.com');
 define('HTTPS_CATALOG_SERVER', 'https://s.hostingprod.com/@ozarkherbandspice.com/ssl');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/ssl/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/ssl/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

also in catalog/application_top.php I tried changing

 

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

to

 

$request_type = (getenv('HTTP_HOST') == 's.hostingprod.com') ? 'SSL' : 'NONSSL';

 

and

 

$request_type = (getenv('SERVER_PORT') == '443') ? 'SSL' : 'NONSSL';

 

because of the output i got from alanr's myenv.php file. which was by the way.

 

$HTTP_HOST = s.hostingprod.com

$HTTPS_HOST =

getenv('SERVER_PORT') = 443

getenv('HTTPS') =

getenv('HTTP_X_FORWARDED_SERVER') =

getenv('HTTP_X_FORWARDED_HOST') =

getenv('HTTP_X_FORWARDED_BY') =

$_SERVER['HTTPS'] =

getenv('DOCUMENT_ROOT') = /

$DOCUMENT_ROOT = /

 

 

thanks,

max

Link to comment
Share on other sites

Short answer? Yahoo hosting sucks.

 

Longer answer? There's a lady (girl) who posted the long, convoluted and obscure method for getting ssl to work on Yahoo. She worked it out by trial and error. Search for it and you might find it.

 

Here, I found it for you.

 

First of all, for those of you who use Yahoo, don't even try calling tech support for help. They wouldn't even tell me how to set up ssl because they don't want anyone using a shopping cart. They wan't you to pay more to use their Merchant Account. (I will be leaving Yahoo eventually).

 

Anyway, after a lot of frustration and hours spent, I figured out how to do it.

 

1. Create a directory named 'ssl' (must be in lowecase)

2. Copy your catalog folder into this directory.

(from now on, when you edit files, you will have to do it in both your root/catalog and root/ssl/catalog)

3. Edt the catalog/includes/configure.php (and ssl/catalog/includes/configure.php)

http://www.oscommerce.com/forums/index.php?sho...00entry715800

 

She apparently made a contribution out of it as well. Search for her name.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

To avoid having copies of files in two different locations, why not create a link (alias) called ssl that points to the catalog directory?

 

From a shell in the / root directory use the link command ln -T /catalog/ ssl. This should create a hard link /ssl, which points to /catalog/ and you have one set of files. If a hard link like this fails for whatever reason, try a symbolic link (symlink) ln -s -T /catalog/ ssl

 

Let us know if it works.

Link to comment
Share on other sites

Ya i found that reply awhile back (yesterday) and have used it to get me much closer but i think somethings have changed because my cert is not comming from the url were hers is come from (< am i saying that right?)

 

https://s.p5.hostingprod.com/@www.yourdomain.com/ssl/

 

mine is just

 

https://s.hostingprod.com/@mydomain.com/ssl/

 

missing the p5 portion and when i include it i get page not found. Ionly know this because i can put a page html or php in the same directory and pull it up just fine. it's only stuff that is linked to oscommerce in someway.

 

so to oscommerce pages are blank, and anything else i put there is fine.

 

Also for the sake of curiosity I changed the permissions on login.php to 777 and still go the same effect. :(

Link to comment
Share on other sites

Based on the Yahoo SSL Help articles for setting this up, you need to correct the servername and path for HTTPS in osC.

define('HTTP_SERVER', 'http://www.ozarkherbandspice.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://s.hostingprod.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.ozarkherbandspice.com');
define('HTTPS_COOKIE_DOMAIN', 's.hostingprod.com');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/ssl/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/@ozarkherbandspice.com/ssl/');

And if you can apply my previous link suggestion you should be sorted.

Link to comment
Share on other sites

To avoid having copies of files in two different locations, why not create a link (alias) called ssl that points to the catalog directory?

 

From a shell in the / root directory use the link command ln -T /catalog/ ssl. This should create a hard link /ssl, which points to /catalog/ and you have one set of files. If a hard link like this fails for whatever reason, try a symbolic link (symlink) ln -s -T /catalog/ ssl

 

Let us know if it works.

 

 

yahoo does not support or offer ssh.....gay

Link to comment
Share on other sites

Wont that make my entire site ssl? I dont really want that....

 

here, the whole purpose or this is the site at ozarkherbandspice.com was donw with the ayhoo site builder crap

because it was supposed to integrate with our POS system better, wel it doesnt so I am doing it this way instead. I want the Oscommerce site to be in the top directory so it's the first thing a customer see's, it will be the whole site. so as soon as i get this working ill be moving it all to / instead of /catalog/ where it is now. Would this all be easier if it was in / ?

Link to comment
Share on other sites

Try it out, put a test HTML file in there ... can you view it from a regular HTTP session that is in the /ssl/ directory, or have Yahoo blocked access to the special-name 'ssl' using HTTP?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...