Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configure.php file question


Bntbrl

Recommended Posts

Posted

What have I done wrong with my configure files? I cant figure out whats wrong to get this thing running. I changed to ssl and I added the ssl and it worked. Then I added the dir_fs_catalog and I cant get anything to work again...

I have tried to figure this out and read the tutorial about ssl on this site and looked all over but cant find a breakdown of the lines for what exactly they have to be.

 

Thanks

 

-----------------------public_html/includes/configure.php-------------------------

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

define('HTTPS_SERVER', 'https://ogeecheeoutdoors.com'); // eg,https://localhost - should not be empty for productive servers

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

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

define('HTTPS_COOKIE_DOMAIN', 'ogeecheeoutdoors.com');

define('HTTP_COOKIE_PATH', '/home/ejohnson/public_html/');

define('HTTPS_COOKIE_PATH', '/home/ejohnson/public_html/');

define('DIR_WS_HTTP_CATALOG', '/home/ejohnson/public_html/');

define('DIR_WS_HTTPS_CATALOG', '/home/ejohnson/public_html/');

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/');

 

//Added for BTS1.0

define('DIR_WS_TEMPLATES', '/templates/');

define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');

define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');

//End BTS1.0

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

define('DIR_FS_CATALOG', '/home/ejohnson/public_html/'); // this is the directory I guesss for modules and all that.

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', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'ejohnson_DATABASENAME');

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

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

?>

 

------------------------admin/includes/configure.php-------------------

 

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

define('HTTP_CATALOG_SERVER', 'http://www.ogeecheeoutdoors.com');

define('HTTPS_CATALOG_SERVER', 'https://ogeecheeoutdoors.com');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/ejohnson/public_html/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/ejohnson/public_html/admin/'); // absolute path required

define('DIR_WS_CATALOG', '/home/ejohnson/public_html/'); // absolute path requiredjust added this address

define('DIR_FS_CATALOG', '/home/ejohnson/public_html/'); // 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/');

 

// Added for Templating

define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/');

define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/');

define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/');

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'ejohnson_DATABASE');

define('DB_SERVER_PASSWORD', 'PASSWORD');

define('DB_DATABASE', 'ejohnson_DATABASENAME');

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

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

?>

Posted

The key is in understanding the following:

 

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

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

 

Anything that starts with DIR_FS is looking for the server's internal filesystem path to the given resource. For example: /home/etc/etc/etc/

 

Anything that starts with DIR_WS is looking for the web address to the given resource. In most of the cases this can be a relative URL (i.e. /images/)

 

You have several places where you have file system paths entered into the web server entries. Fix them and it should take care of it.

Rule #1: Without exception, backup your database and files before making any changes to your files or database.

Rule #2: Make sure there are no exceptions to Rule #1.

Posted

Here's catalog, give me a minute or so to check admin

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.ogeecheeoutdoors.com'); // eg,http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://ogeecheeoutdoors.com'); // eg,https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.ogeecheeoutdoors.com');
define('HTTPS_COOKIE_DOMAIN', 'ogeecheeoutdoors.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
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/');

//Added for BTS1.0
define('DIR_WS_TEMPLATES', 'templates/');
define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
//End BTS1.0
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/home/ejohnson/public_html/'); // this is the directory I guesss for modules and all that.
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', 'root');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'ejohnson_DATABASENAME');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

I've never used BTS but I'm assuming the templates directory is directly beneath the root.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

Here's admin (don't forget the final ?> that I left off catalog)

 

<?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.ogeecheeoutdoors.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.ogeecheeoutdoors.com');
define('HTTPS_CATALOG_SERVER', 'https://ogeecheeoutdoors.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/ejohnson/public_html/'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/home/ejohnson/public_html/admin/'); // absolute path required
define('DIR_WS_CATALOG', '/'); // absolute path requiredjust added this address
define('DIR_FS_CATALOG', '/home/ejohnson/public_html/'); // 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/');

// Added for Templating
define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/');
define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/');
define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/');

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

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

Thanks!

 

I think it fixed the graphics not showing when you enter www.mysiteaddy.com I dont understand why it would show the graphics without the www. but with the www. it wouldnt show the graphics.

 

On the Https page there still is no graphics. I cant for the life of me figure this out. I have tried everything that I can find.

Posted

The graphics sometime show up and sometimes they wont show up when accessing via www.ogeecheeoutdoors.com Most every time the graphics some up when using ogeecheeoutdoors.com

 

I cant figure this one out. I have been trying to fix this for a week now.

Posted

https://ogeecheeoutdoors.com/

 

There are usually two reasons the images won't show up.

 

1) You've got hotlinking protection set and it's blocking the https request. Check for hotlinking protection in your control panel. That might also explain the problem you describe here:

 

I think it fixed the graphics not showing when you enter www.mysiteaddy.com I dont understand why it would show the graphics without the www. but with the www. it wouldnt show the graphics.

 

2) You're on a server which uses a separate folder for secure connections. You can check for that with your ftp program and looking for a folder named private_html or something similar at the same level as your public_html folder.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

AlanR you're the best. I didnt even know it had hotlinking on the server. I had never messed with it, i dunno, but it works now. Thank you a million times.

 

Thank you!

Archived

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

×
×
  • Create New...