Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configuring SSL


dapeche

Recommended Posts

I am totally new to this whole php thing & the ssl is just as perplexing <_< , but I am learning. My question -- I plugged in the ssl information from information I found in the forums, but when it came time to test it, this is the error I received when clicking on the login link

No input file specified.

And this is what shows up in the address line in IE

https://id00.chi.us.ezhostsite.com/sasignworkslogin.php?

osCsid=a0a822adacfc2ab7837094dfcf4b11c6

I am not sure what you need to know so I am trying to include everything I did. I am including the code below, of course with login passwords & the top php deleted :-" . If someone could tell me where I went wrong, I will be most grateful. Thanks.

 

Angel :thumbsup:

 

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

Link to comment
Share on other sites

That URL look wrong. there should be a "/" before login.php I think.

 

If the SSL is supplied by your host, you might be better off asking them about it. Did they give you that https:// path?

Link to comment
Share on other sites

You need these changes, at least:

 

define ('HTTPS_COOKIE_DOMAIN', 'id00.chi.us.ezhostsite.com');
define ('HTTPS_COOKIE_PATH'. '/sasignworks/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

Link to comment
Share on other sites

define ('HTTPS_COOKIE_DOMAIN', 'id00.chi.us.ezhostsite.com');
define ('HTTPS_COOKIE_PATH'. '/sasignworks/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

I did what was stated above and the following errors occured.

error 1

Warning: Wrong parameter count for define() in /home/www/sasignworks/catalog/includes/configure.php on line 20

error 2

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/sasignworks/catalog/includes/configure.php:20) in /home/www/sasignworks/catalog/includes/functions/sessions.php on line 67

error 3

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/sasignworks/catalog/includes/configure.php:20) in /home/www/sasignworks/catalog/includes/functions/sessions.php on line 67

 

Here is what the file looks like when I edited it.

define('HTTP_SERVER', 'http://www.sasignworks.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://id00.chi.us.ezhostsite.com/sasignworks'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.sasignworks.com');
 define ('HTTPS_COOKIE_DOMAIN', 'id00.chi.us.ezhostsite.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define ('HTTPS_COOKIE_PATH'. '/sasignworks/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/sasignworks/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

these are lines 66, 67, 69 on the sessions page mentioned above.

function tep_session_start() {
   return session_start();
 }

And to answer the questions the other person had, yes that is the shared ssl address my hosting service sent me. Thank you for your patience and your help.

 

Angel :thumbsup:

Link to comment
Share on other sites

Sorry, I forgot to point out which one was line 20 on the configure.php file for the origional page code.

 

define ('HTTPS_COOKIE_PATH'. '/sasignworks/catalog/');

 

Angel :thumbsup:

Link to comment
Share on other sites

Sorry, a typo on my part. Should have been:

 

define ('HTTPS_COOKIE_PATH', '/sasignworks/catalog/');

 

A basic understanding of PHP syntax is very helpful in making it past things such as this, and getting anywhere with osC.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...