Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CONFIGURE.PHP error with defining webserver


granitestater

Recommended Posts

i've done an extensive search, trying to find what i've done wrong here...appears I've got something backwards on my server paths, that doesn't allow my http://www.welchfluorocarbon.com/catalog to load???

 

<?php

/*

$Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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.welchfluorocarbon.com'); // eg, http://localhost - should not be empty for productive servers

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

define('ENABLE_SSL', true); // secure webserver for checkout procedure? - changed 14-JUN-05 false to true

define('HTTP_COOKIE_DOMAIN', 'catalog/');

define('HTTPS_COOKIE_DOMAIN', 'catalog/');

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', 'catalog/images/'); // removed 14-JUN-05 catalog/images/

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'catalog/icons/'); // removed 14-JUN-05 catalog/icons/

define('DIR_WS_INCLUDES', 'catalog/includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'catalog/boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'catalog/functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'catalog/classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'catalog/modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'catalog/languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'catalog/pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'catalog/download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'catalog/pub/');

 

// define our database connection

define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'oscommerce');

define('DB_SERVER_PASSWORD', 'fiberman');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

all your catalog/ need to be /catalog/

 

awesome, fixed the following and now it works great...i was so close before...thank you!!!

 

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

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

define('ENABLE_SSL', true); // secure webserver for checkout procedure? - changed 14-JUN-05 false to true

define('HTTP_COOKIE_DOMAIN', 'www.welchfluorocarbon.com');

define('HTTPS_COOKIE_DOMAIN', 'www.welchfluorocarbon.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', '/catalog/images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); // removed 14-JUN-05 catalog/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_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'oscommerce');

define('DB_SERVER_PASSWORD', 'fiberman');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

Just a few things, which will cause problems if not rectified:

 

define('DIR_WS_IMAGES', 'images/'); //no 'catalog/' here

 

define('DB_SERVER', ''); // don't know if you meant to leve this empty, but it's usually either 'localhost' or (on RedHat Enterprise Linux) it's '127.0.0.1' Windows servers can be diffeent again.

 

define('STORE_SESSIONS', 'mysql'); // to store files in the database and not in a 'tmp' folder.

 

Vger

Link to comment
Share on other sites

Just a few things, which will cause problems if not rectified:

 

define('DIR_WS_IMAGES', 'images/'); //no 'catalog/' here

 

define('DB_SERVER', ''); // don't know if you meant to leve this empty, but it's usually either 'localhost' or (on RedHat Enterprise Linux) it's '127.0.0.1'  Windows servers can be diffeent again.

 

define('STORE_SESSIONS', 'mysql'); // to store files in the database and not in  a 'tmp' folder.

 

Vger

 

it appeared to be working okay without these, but just added them and runs much smoother, especially since I added the On the Fly Auto Thumbnailer v1.9.1 which works great!!!

 

how do i assign a "no picture available" image, or an image like a SPACER pic (1x1 transparent gif) in case I have an error...instead of getting a big old X???

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...