PDA

View Full Version : confused...... configuration


tcjay
4-16-04, 08:37 AM
I have spent hours reading the posts on configuring oscommerce and for the liffe of me I can't figure out where I am going wrong. This is my configuration:

define('HTTP_SERVER', 'http://needlepointbackbay.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://neptune.powweb.com/#####'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'needlepointbackbay.com');
define('HTTPS_COOKIE_DOMAIN', 'neptune.powweb.com');
define('HTTP_COOKIE_PATH', '/shoppingcart/catalog/');
define('HTTPS_COOKIE_PATH', '/shoppingcart/catalog/');
define('DIR_WS_HTTP_CATALOG', '/shoppingcart/catalog');
define('DIR_WS_HTTPS_CATALOG', '/shoppingcart/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
//define('DIR_FS_CATALOG', '/www/n/needlepointbackbay.com/htdocs/shoppingcart/catalog/');//
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

When I try to check out the page cannot be found. This is the adddress:

https://neptune.powweb.com/######//shoppingcart/catalog/checkout_shipping.php?osCsid=aa72131c4b199be45ac1f 6b921fd332b

It must be right in front of me.............. but looking at prior posts I cannot idetify what is wrong.

TIA Tom

stevel
4-16-04, 10:32 AM
I'm not sure where you got the line you're using, but what you want instead is:

define('HTTPS_SERVER', 'https://needlepointbackbaycom.secure.powweb.com');
define('HTTPS_COOKIE_DOMAIN', 'needlepointbackbaycom.secure.powweb.com');

tcjay
4-20-04, 04:20 PM
I have made the changes and I continue to get a warning message in admin that states that the site is not SSL. I would like to know if any other user of POWWEB ran into this problem and what I should do.

stevel
4-20-04, 04:29 PM
In your admin/includes/configure.php, use the https URL instead of the http URL for HTTP_SERVER and open your admin panel using https.

tcjay
4-21-04, 05:24 AM
I made the change to the configuration file but how do I go about opening your admin panel using https?

stevel
4-21-04, 06:13 AM
Well, one way is to use the https URL for your admin panel! Another is to add the following code to index.php, right after the require for application_top.php:

if ($_SERVER['HTTPS'] != "on" && substr(HTTP_SERVER, 0, 5) == 'https') {
header("Location: ".tep_href_link(FILENAME_DEFAULT));
}

tcjay
4-21-04, 07:45 AM
Now when I try to check out I recceive a message that thte page does not exist. This is the url:

https://needlepointbackbaycom.secure.powweb.com/checkout_shipping.php?osCsid=29d43c6815078a6739e58 ba9d1ce195b

OsCommerce is in /store/catalog/. I do not know if that influences the paths.

stevel
4-21-04, 08:58 AM
It certainly does - you would need to add /store/catalog to the HTTPS_SERVER define in store/catalog/includes/configure.php

Did you know that you also have a partial osC install under needlepointbackbay.com/catalog?

tcjay
4-21-04, 12:42 PM
What do you mean I have a partial install and how can you tell by looking at my shopping cart. I will make the changes to the paths

stevel
4-21-04, 02:42 PM
I meant that I opened www.needlepointbackbay.com/catalog and got what looked like a default osCommerce install, but no images. I didn't try to go any further.

tcjay
4-21-04, 05:06 PM
Ohps......... sorry the url is:


http://needlepointbackbay.com/store/catalog/

stevel
4-21-04, 06:59 PM
You seem to have it working. Be sure to do the chmod of the configure.php files to secure them.