Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ssl config


Guest

Recommended Posts

im trying to set up oscommerce. it worked great so far. site is fully working but ssl doesnt seem to like my setup... admin is protected by password, so i just want to focus on the other config.php.

 

i have a certificate (not shared), osc install is in /mod. whatever i do, i get errors on top of page or on login.php. my webhosting had a guy try things for me but nothing worked...

 

this is my config the way i have it now. its working, with ssl disabled cos if i change any of these everything's broken... how to configure this?

 

thanks for your your help.

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://oki-mod.com');

define('HTTPS_SERVER', 'https://oki-mod.com');

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

define('HTTP_COOKIE_DOMAIN', 'http://oki-mod.com');

define('HTTPS_COOKIE_DOMAIN', 'https://oki-mod.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

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

define('DIR_WS_IMAGES', '/mod/images/');

define('DIR_WS_ICONS', '/mod/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/');

Link to comment
Share on other sites

1. You'll have to correct the following lines:

 

define('HTTP_COOKIE_DOMAIN', 'http://oki-mod.com');
define('HTTPS_COOKIE_DOMAIN', 'https://oki-mod.com');

to

define('HTTP_COOKIE_DOMAIN', 'oki-mod.com');
define('HTTPS_COOKIE_DOMAIN', 'oki-mod.com');

 

2. You have 2 configure.php files, 1 for the Catalog Section and the other is for the Admin Section. Don't forget to double check them both.

 

3. (The most important one, otherwise your store will fail!) Send the reward to your favorite Tsunami Relieve organisation.

 

Good luck! :thumbsup:

Link to comment
Share on other sites

i tired the above suggestion. link to login pahe seems to be https now but i get a blank page there with:

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/okimod/public_html/mod/includes/configure.php:59) in /home/okimod/public_html/mod/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/okimod/public_html/mod/includes/configure.php:59) in /home/okimod/public_html/mod/includes/functions/sessions.php on line 67

 

Warning: Cannot modify header information - headers already sent by (output started at /home/okimod/public_html/mod/includes/configure.php:59) in /home/okimod/public_html/mod/includes/functions/general.php on line 29

------------------------------------------------------------------------------------

 

admin/includes/configure.php is:

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

? define('HTTP_SERVER', 'http://www.oki-mod.com');

? define('HTTPS_SERVER', 'http://www.oki-mod.com');

? define('HTTP_CATALOG_SERVER', 'http://www.oki-mod.com');

? define('HTTPS_CATALOG_SERVER', 'https://www.oki-mod.com');

? define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

? define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/mod/admin/');

? define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/mod/');

Link to comment
Share on other sites

1. The problem occurs after you changed from oki-mod.com to www.oki-mod.com. They are not the same thing. You'll also have to change the COOKIE_DOMAIN to match as well.

 

2. The COOKIE_DOMAIN must not contain http:// or https://

 

If you want, just post the 2 configure.php files here (cross out the database details for security).

Link to comment
Share on other sites

admin/includes:

define('HTTP_SERVER', 'https://www.oki-mod.com');

? define('HTTPS_SERVER', 'https://www.oki-mod.com');

? define('HTTP_CATALOG_SERVER', 'http://www.oki-mod.com');

? define('HTTPS_CATALOG_SERVER', 'https://www.oki-mod.com');

? define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 

catalog/incudes:

define('HTTP_SERVER', 'http://oki-mod.com');

define('HTTPS_SERVER', 'https://oki-mod.com');

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

define('HTTP_COOKIE_DOMAIN', 'oki-mod.com');

define('HTTPS_COOKIE_DOMAIN', 'oki-mod.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

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

Link to comment
Share on other sites

Admin's configure.php:

define('HTTP_SERVER', 'https://www.oki-mod.com');
define('HTTP_CATALOG_SERVER', 'http://www.oki-mod.com');
define('HTTPS_CATALOG_SERVER', 'https://www.oki-mod.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 

Catalog's configure.php:

define('HTTP_SERVER', 'http://www.oki-mod.com');
define('HTTPS_SERVER', 'https://www.oki-mod.com');
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.oki-mod.com');
define('HTTPS_COOKIE_DOMAIN', 'www.oki-mod.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/mod/');
define('DIR_WS_HTTPS_CATALOG', '/mod/');

 

By the way, did you know that you are using STS?

Link to comment
Share on other sites

i deleted all www from admin/includes/configure.php to match with the other configure.phph but it hasnt changed anything... and i tried the above that was suggested (thanks by the way) but i havent had any luck.

 

about sts, its from current skin... i noticed that but idont know if its important!

Link to comment
Share on other sites

i deleted all www from admin/includes/configure.php to match with the other configure.phph but it hasnt changed anything... and i tried the above that was suggested (thanks by the way) but i havent had any luck.

 

about sts, its from current skin... i noticed that but idont know if its important!

STS has countless of compatible issues with other contributions. (the ones you have are fine) STS also carries HUGE database performance penalties.

 

Now change:

define('STORE_SESSIONS', '');

to

define('STORE_SESSIONS', 'mysql');

Link to comment
Share on other sites

STS has countless of compatible issues with other contributions.? (the ones you have are fine)? STS also carries HUGE database performance penalties.

 

Now change:

define('STORE_SESSIONS', '');

to

define('STORE_SESSIONS', 'mysql');

 

its already set that way... in both...

 

thanks so much for the help alpha!

Link to comment
Share on other sites

you have 'white space' at the end of your configure.php file. edit the file with wordpad, or a php editor and that will fix the problem.

 

also did you set ssl to true?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...