Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shared SSL configuration


acwlai

Recommended Posts

I try to configure my osCommerce with shared SSL. Here is my configure.php

 

define('HTTP_SERVER', 'http://www.mystore.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.keysecure.com/mystore.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.mystore.com');

define('HTTPS_COOKIE_DOMAIN', 'www.keysecure.com/mystore.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/');

 

I got the error message when I go to checkout procedure

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /usr2/home/mystore.com/htdocs/catalog/includes/application_top.php on line 53

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/local/lib/php') in /usr2/home/mystore/htdocs/catalog/includes/application_top.php on line 53

 

Any ideas?

 

Store is at mystore.com/catalog/index.php

Link to comment
Share on other sites

post the actual configure.php file without the database info, as you may have eliminated something when you changed mystore.com

 

did you change anything in application top?

Link to comment
Share on other sites

I use different configuration for different host.

I found my problem is in 'if' condition. I need to add $hostname == "www.keysecure.com" in 'if' condition so when I go to shared SSL, I still can find my configuration.

 

if($hostname == "www.mystore.com" || $hostname == "www.keysecure.com" )

{

define('HTTP_SERVER', 'http://www.mystore.com'); // eg, http://localhost - should not be empty for productive servers

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...