Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configure.php settings...


HDLLC

Recommended Posts

Posted

Hi-

 

I was making some changes to my configure.php files - and overwrote the back-up file as well...

 

As you guessed - things not working now.

I think it has to do with changes made to the FS directory information.

 

Is there a way I can get back to the admin/setup tool to have it detect where the root is in the file structure and reset those few items back to what they should be? My site is serving up empty pages now...

 

Thanks in advance!

 

--Jeff

Posted

FTP to the root of your website and then look in the top right FTP browse window. The pathway shown there should be your FS pathway.

 

Vger

Posted
FTP to the root of your website and then look in the top right FTP browse window. The pathway shown there should be your FS pathway.

 

Vger

 

 

Thanks! I looked there (Mac user - using Fetch) and think I have it correct - but nothing working still...

 

Any ideas...?

 

I know this is hard to help without seeing the file - would it help if I sent it? Just thinking out loud...

 

Thanks again-

 

--Jeff

Posted

Configure.php file:

 

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

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

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', '/Library/WebServer/WebSites/~PredatorQuest/public_html/catalog/'); // where the pages are located on the server

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

define('DIR_WS_CATALOG', 'http://www.PredatorQuest.com/catalog/'); // absolute path required

define('DIR_FS_ADMIN', '/Library/WebServer/WebSites/~PredatorQuest/public_html/catalog/admin/'); // absolute path required

define('DIR_FS_CATALOG', '/Library/WebServer/WebSites/~PredatorQuest/public_html/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/');

 

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

 

 

 

Admin configure.php:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('DIR_FS_ADMIN', '/Library/WebServer/WebSites/PredatorSniperStyx/public_html/catalog/admin/');

define('DIR_FS_CATALOG', '/Library/WebServer/WebSites/PredatorSniperStyx/public_html/catalog/');

 

 

 

// Define the webserver and path parameters

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

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

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

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

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', 'http://www.predatorquest.com/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/Library/WebServer/WebSites/~PredatorQuest/public_html/catalog/admin/'); // absolute path required

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

define('DIR_FS_CATALOG', '/Library/WebServer/WebSites/~PredatorQuest/public_html/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/');

 

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

Posted

catalog/admin/includes/configure.php

---------------------------------

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

 

and your DIR_FS pathway looks wrong. Did you check it out as I advised?

 

Don't know what this is (below). It's not the Simple Template System, and it's not the Basic Template System.

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

 

Both configure.php files are the catalog/admin/includes/configure.php file. You haven't posted a catalog/includes/configure.php file.

 

Vger

Posted

Yep - I checked the actual file structure - I know the real path. I've been out of town for several days - so will get back into the source of the problem.

 

What I was trying to do is create the right paths for the site to go 'live' ... It was 'staged' in a temp directory for which the path was old and creating links that worked, but were in a "~/username" directory, instead of working under the regular domain name... Does this make sense?

 

Oh, and the site is using a purchased template that has been modified - hence that template directory...

 

Thanks again! Sure appreciate the help!

 

--Jeff

 

Here's the admin file:

_______________________________________________

 

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('DIR_FS_ADMIN', '/Library/WebServer/WebSites/PredatorSniperStyx/public_html/catalog/admin/');

define('DIR_FS_CATALOG', '/Library/WebServer/WebSites/PredatorSniperStyx/public_html/catalog/');

 

 

 

// Define the webserver and path parameters

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

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

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

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

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', 'http://www.predatorquest.com/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/Library/WebServer/WebSites/~PredatorQuest/public_html/catalog/admin/'); // absolute path required

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

define('DIR_FS_CATALOG', '/Library/WebServer/WebSites/~PredatorQuest/public_html/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/');

 

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

Posted

define('DIR_FS_DOCUMENT_ROOT', '/Library/WebServer/WebSites/PredatorSniperStyx/public_html/catalog/'.

 

I am assuming that the two lines you posted at the top of your post are the correct FS (File Server) pathways, in which case you need to edit those entries in the configure.php file you posted.

 

Vger

Archived

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

×
×
  • Create New...