Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Config Problem


Guest

Recommended Posts

Posted

Ok I know now that I have to duplicate my shopping cart in both httpdocs and httpsdocs. That I did

 

Know when i go to my checkout it redirects me to the login page but can not determine the page due to duplicate messages.

 

httpdocs directory config file.

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 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.pureaswater.net'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.pureaswater.net'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.pureaswater.net');
 define('HTTPS_COOKIE_DOMAIN', 'https://www.pureaswater.net');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', 'catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', 'https://www.pureaswater.net');
 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/httpd/vhosts/pureaswater.net/httpdocs/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', ***);
 define('DB_SERVER_PASSWORD', ***);
 define('DB_DATABASE', ***);
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

 

https directory config file

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 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', ''); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.pureaswater.net');
 define('HTTPS_COOKIE_DOMAIN', 'https://www.pureaswater.net/');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', 'catalog/');
 define('DIR_WS_HTTPS_CATALOG', [B]'https://www.pureaswater.net/catalog/[/B]');
 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', '/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'usr_pureaswater');
 define('DB_SERVER_PASSWORD', 'w@t5r');
 define('DB_DATABASE', 'pureaswater');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Note the bold this is the only way i could get the site to work, but now my problem is it stays in https. Has anyone else had this issue with running OS in httpdocs and httpsdocs.

 

I need to rectify this ASAP or am i stuck in the https world once I arrive. Desparately need some assistance on this.

 

Thanks in advance Vger.

 

 

here is the site http://www.pureaswater.net/catalog/index.php

Posted

First thing you should consider is changing your user name and password for your database.

 

Second, consider these (unless you are sure they are correct - in which case I am just not familiar with your setup):

 

Change define('HTTP_COOKIE_DOMAIN', 'www.pureaswater.net');

to define('HTTP_COOKIE_DOMAIN', 'pureaswater.net');

 

Change define('HTTPS_COOKIE_DOMAIN', 'https://www.pureaswater.net');

to define('HTTPS_COOKIE_DOMAIN', 'pureaswater.net');

 

Change define('DIR_WS_HTTPS_CATALOG', 'https://www.pureaswater.net');

to define('DIR_WS_HTTPS_CATALOG', 'pureaswater.net/catalog/');

 

BACKUP FILES BEFORE MAKING CHANGES............

Posted
First thing you should consider is changing your user name and password for your database.

 

Second, consider these (unless you are sure they are correct - in which case I am just not familiar with your setup):

 

Change define('HTTP_COOKIE_DOMAIN', 'www.pureaswater.net');

to define('HTTP_COOKIE_DOMAIN', 'pureaswater.net');

 

Change define('HTTPS_COOKIE_DOMAIN', 'https://www.pureaswater.net');

to define('HTTPS_COOKIE_DOMAIN', 'pureaswater.net');

 

Change  define('DIR_WS_HTTPS_CATALOG', 'https://www.pureaswater.net');

to  define('DIR_WS_HTTPS_CATALOG', 'pureaswater.net/catalog/');

 

BACKUP FILES BEFORE MAKING CHANGES............

 

 

BADDOG

 

Thanks for your input, what a dummy was I i failed to check my second code post for usr info thanks again.

 

Here is what worked. In the httpdocs configure.php file i had to blank out the

Change define('HTTP_SERVER', 'http://www.pureaswarter.net')

to define('HTTP_SERVER', '')

 

define('HTTPS_SERVER', 'https://www.pureaswarter.net')

 

 

and do the opposite on the httpsdocs configure.php

define('HTTP_SERVER', 'http://www.pureaswarter.net/')

 

Change define('HTTPS_SERVER', 'https://www.pureaswarter.net')

to define('HTTPS_SERVER', '')

 

These changes alone allows the program to easily switch between the https directory and the http directory.

 

Now all I have to do is connect to linkpoint payment gateway.

 

once again thanks.

Archived

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

×
×
  • Create New...