Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

configure.php


Guest

Recommended Posts

Posted

The file system path to this website from the serve I run on is:

 

/home/j0ker21m/public_html/store2/

 

The url path is:

http://www.jokersdomain.com/store2

 

 

Here is my configure.php file. Can someone look this over to see if it is correct? I have tried every thumbnail contribution out there and have had no success at all. This is the default settings from a vanilla install.

 

<?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 (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://jokersdomain.com');
define('HTTPS_SERVER', 'https://jokersdomain.com');
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'http://jokersdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'https://jokersdomain.com');
define('HTTP_COOKIE_PATH', '/jokersdomain.com');
define('HTTPS_COOKIE_PATH', '/jokersdomain.com');
define('DIR_WS_HTTP_CATALOG', '/store2/');
define('DIR_WS_HTTPS_CATALOG', '/store2/');
define('DIR_WS_IMAGES', '/store2/images/');
define('DIR_WS_ICONS', '/store2/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', 'localhost');
define('DB_SERVER_USERNAME', '1_osc2');
define('DB_SERVER_PASSWORD', '****');
define('DB_DATABASE', '1_osc2');
 define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql');

?>

Posted

what is the specific problem you're having? Do you get error messages?

Posted

For example use this configuration files

They are functional on my own website/shop

 

 

 

///////// configure.php in path includes ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

 

<?php

/*

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.yourdomain.com'); // 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', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://www.yourdomain.com');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_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', '/homepages/xxx/dxxxxxxxx/htdocs/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', 'your_database.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'database username');

define('DB_SERVER_PASSWORD', 'database password');

define('DB_DATABASE', 'your database');

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

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

?>

 

 

 

 

///////// configure.php in path admin/includes /////////////////////////////////////////////////////////////////////////////////////////////////

 

 

<?php

/*

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

define('HTTP_CATALOG_SERVER', 'http://www.your-domain.com');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', '/homepages/xxx/xxxxx/htdocs/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/brbshop/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/homepages/xxx/xxxxx/htdocs/catalog/'); // absolute pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', /homepages/xxx/xxxxx/htdocs/catalog/'); // absolute path required

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

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'database username');

define('DB_SERVER_PASSWORD', 'database password');

define('DB_DATABASE', 'name of database');

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

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

?>

Posted

Fine, except for this

 

define('HTTP_COOKIE_DOMAIN', 'http://www.yourdomain.com');

 

which should read

 

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

 

Vger

Posted

After having many difficulties with the configure.php settings, I decided to write a couple of codes which will reveal the variable values. This helps to see if you have all of your slashes (/) in the right place, as well as many other things you can visually check. I hope people get use out of them.

 

add this to /includes/configure.php after this line:

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

//*******************Catalog: START Variable Print************************
//  DELETE EVERYTHING BETWEEN START & END VARIABLE PRINT WHEN FINISHED
//                    BY j0ker21m
//************************************************************************
echo '<ul>' ,
'<ol>',
'<li> HTTP_SERVER= <b>', HTTP_SERVER , '</b> </li> <br> ' ,
'<li> HTTPS_SERVER= <b>',  HTTPS_SERVER  , '</b> </li> <br> ' ,
'<li> ENABLE_SSL= <b>', ENABLE_SSL , '</b> </li> <br> ' ,
'<li> HTTP_COOKIE_DOMAIN= <b>', HTTP_COOKIE_DOMAIN ,'</b> </li> <br> ' ,
'<li> HTTPS_COOKIE_DOMAIN= <b>', HTTPS_COOKIE_DOMAIN ,'</b> </li> <br> ' ,
'<li> HTTP_COOKIE_PATH= <b>', HTTP_COOKIE_PATH ,'</b> </li> <br> ' ,
'<li> HTTPS_COOKIE_PATH= <b>', HTTPS_COOKIE_PATH ,'</b> </li> <br> ' ,
'<li> DIR_WS_HTTP_CATALOG= <b>', DIR_WS_HTTP_CATALOG ,'</b> </li> <br> ' ,
'<li> DIR_WS_HTTPS_CATALOG= <b>', DIR_WS_HTTPS_CATALOG ,'</b> </li> <br> ' ,
'<li> DIR_WS_IMAGES= <b>', DIR_WS_IMAGES ,'</b> </li> <br> ' ,
'<li> DIR_WS_ICONS= <b>', DIR_WS_ICONS ,'</b> </li> <br> ' ,
'<li> DIR_WS_INCLUDES= <b>', DIR_WS_INCLUDES ,'</b> </li> <br> ' ,
'<li> DIR_WS_INCLUDES= <b>', DIR_WS_INCLUDES ,'</b> </li> <br> ' ,
'<li> DIR_WS_BOXES= <b>', DIR_WS_BOXES ,'</b> </li> <br> ' ,
'<li> DIR_WS_FUNCTIONS= <b>', DIR_WS_FUNCTIONS ,'</b> </li> <br> ' ,
'<li> DIR_WS_CLASSES= <b>', DIR_WS_CLASSES ,'</b> </li> <br> ' ,
'<li> DIR_WS_MODULES= <b>', DIR_WS_MODULES ,'</b> </li> <br> ' ,
'<li> DIR_WS_LANGUAGES= <b>', DIR_WS_LANGUAGES ,'</b> </li> <br> ' ,
'<li> DIR_WS_DOWNLOAD_PUBLIC= <b>', DIR_WS_DOWNLOAD_PUBLIC  ,'</b> </li> <br> ' ,
'<li> DIR_FS_CATALOG= <b>', DIR_FS_CATALOG ,'</b> </li> <br> ' ,
'<li> DIR_FS_DOWNLOAD= <b>', DIR_FS_DOWNLOAD,'</b> </li> <br> ' ,
'<li> DIR_FS_DOWNLOAD_PUBLIC= <b>', DIR_FS_DOWNLOAD_PUBLIC ,'</b> </li> <br> </ol>';
die;
//***************************END Variable Print***************************
//  DELETE EVERYTHING BETWEEN START & END VARIABLE PRINT WHEN FINISHED
//************************************************************************

**This script will be seen when you type www.yourdomain.com**

 

 

 

Add this to /admin/includes/configure.php AFTER this line:

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

//*******************Admin: ?START Variable Print*************************
// ?DELETE EVERYTHING BETWEEN START & END VARIABLE PRINT WHEN FINISHED
// ? ? ? ? ? ? ? ? ? ?BY j0ker21m
//************************************************************************

echo '<ul>' ,
'<ol>',
'<li> HTTP_SERVER= <b>', ?HTTP_SERVER, '</b> </li> <br> ' ,
'<li> HTTP_CATALOG_SERVER= <b>', HTTP_CATALOG_SERVER, '</b> </li> <br> ' ,
'<li> HTTPS_CATALOG_SERVER= <b>', HTTPS_CATALOG_SERVER, '</b> </li> <br> ' ,
'<li> ENABLE_SSL_CATALOG= <b>', ENABLE_SSL_CATALOG, '</b> </li> <br> ' ,
'<li> DIR_FS_DOCUMENT_ROOT= <b>', DIR_FS_DOCUMENT_ROOT, '</b> </li> <br> ' ,
'<li> DIR_WS_ADMIN= <b>', DIR_WS_ADMIN, '</b> </li> <br> ' ,
'<li> DIR_FS_ADMIN= <b>', DIR_FS_ADMIN, '</b> </li> <br> ' ,
'<li> DIR_WS_CATALOG= <b>', DIR_WS_CATALOG, '</b> </li> <br> ' ,
'<li> DIR_FS_CATALOG= <b>', DIR_FS_CATALOG, '</b> </li> <br> ' ,
'<li> DIR_WS_IMAGES= <b>', DIR_WS_IMAGES, '</b> </li> <br> ' ,
'<li> DIR_WS_ICONS= <b>', DIR_WS_ICONS, '</b> </li> <br> ' ,
'<li> DIR_WS_CATALOG_IMAGES= <b>', DIR_WS_CATALOG_IMAGES, '</b> </li> <br> ' ,
'<li> DIR_WS_INCLUDES= <b>', DIR_WS_INCLUDES, '</b> </li> <br> ' ,
'<li> DIR_WS_BOXES= <b>', DIR_WS_BOXES, '</b> </li> <br> ' ,
'<li> DIR_WS_FUNCTIONS= <b>', DIR_WS_FUNCTIONS, '</b> </li> <br> ' ,
'<li> DIR_WS_CLASSES= <b>', DIR_WS_CLASSES, '</b> </li> <br> ' ,
'<li> DIR_WS_MODULES= <b>', DIR_WS_MODULES, '</b> </li> <br> ' ,
'<li> DIR_WS_LANGUAGES= <b>', DIR_WS_LANGUAGES, '</b> </li> <br> ' ,
'<li> DIR_WS_CATALOG_LANGUAGES= <b>', DIR_WS_CATALOG_LANGUAGES, '</b> </li> <br> ' ,
'<li> DIR_FS_CATALOG_LANGUAGES= <b>', DIR_FS_CATALOG_LANGUAGES, '</b> </li> <br> ' ,
'<li> DIR_FS_CATALOG_IMAGES= <b>', DIR_FS_CATALOG_IMAGES, '</b> </li> <br> ' ,
'<li> DIR_FS_CATALOG_MODULES= <b>', DIR_FS_CATALOG_MODULES, '</b> </li> <br> ' ,
'<li> DIR_FS_BACKUP= <b>', DIR_FS_BACKUP, '</b> </li> <br> ' ,
'</ol>';
die;
//***************************END Variable Print***************************
// ?DELETE EVERYTHING BETWEEN START & END VARIABLE PRINT WHEN FINISHED
//************************************************************************

***This script can be viewed when you go to www.yourdomain.com/admin***

 

 

 

These scripts are for debugging only, and anyone visiting your site will see this while this script is still intact.

Posted

UPDATE: I made these scripts a contribution so everything shows up on one page. You can get it here: Debugger

Archived

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

×
×
  • Create New...