Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Manual Config - What am i doing wrong?


Guest

Recommended Posts

My email: [email protected]

I am setting up OSC 2.2 MS2 for a friend..

Unfortunately I don?t have much control over the server.. (cant mod the permissions etc, I instead have to email them and request the mod)

So, I found it best to modify the config files manually, but this is where I am running into trouble.

 

I cannot get the admin section to "see" the catalog/images folder (thus not allowing the ?new product? function to upload images)

OSC 2.2 MS2 uses a slightly different config file than MS1, and I am not familiar enough to mod it successfully.

 

I have pasted both config files below in hopes you can see my errors:

(I have also commented it in areas of problems)

 

(FYI ? the URL is: http://cerberusracing.hostinguk.com)

(admin is /admin catalog is /catalog)

(nothing is protected yet, as I am still setting up the cart)

(the server is Win 2K, with limited FTP access only)

 

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

-------- catalog/includes config ------

 

<?php

/*

$Id: configure.php,v 1.13 2003/02/10 22:30:51 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://cerberusracing.hostinguk.com'); // eg, http://localhost - should not be empty for productive servers

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

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

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

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', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['DOCUMENT_ROOT']); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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', '195.224.49.185'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'cerberus');

define('DB_SERVER_PASSWORD', '*******');

define('DB_DATABASE', 'cerberus');

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

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

?>

 

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

-------------- admin/includes config ------------

 

 

<?php

/*

$Id: configure.php,v 1.13 2002/07/20 09:08:31 project3000 Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://cerberusracing.hostinguk.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://cerberusracing.hostinguk.com');

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

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

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

COMMENT: *- here is whats new to me, I replaced $document_root with several different ?versions? of the path.. and it still wont work.-*

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

define('DB_SERVER_USERNAME', 'cerberus');

define('DB_SERVER_PASSWORD', '*******');

define('DB_DATABASE', 'cerberus');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

I cannot get the admin section to "see" the catalog/images folder

To upload files in the right place, PHP uses the DIR_FS_* variables (FS stands for File System). In some settings, $DOCUMENT_ROOT does not actually point to the right place.

 

Upload a phpinfo.php file with:

<?php phpinfo(); ?>

and look at the actual paths. Then copy them to the DIR_FS_* constants. This might help.

Christian Lescuyer

Link to comment
Share on other sites

I did so, (adding d:inetpubcerberusracing.comwebroot)

And it still comes with the error:

Error: Catalog images directory does not exist: d:/inetpub/cerberusracing.com/webroot/catalog/images/

(You may notice the slash change, as I tried it with both types of slashes.)

 

The file I made for info is: http://cerberusracing.hostinguk.com/dude.php

 

Dam, I did get a copy of OSC to work on a windows box before. this is frustrating.

 

FYI, when I log in via FTP,, the "cerberusracing.com" directory is represented as "cerberus".. oh how i long for a UNIX environment!

Any ideas?

Link to comment
Share on other sites

Holy son of a cow.. i got it to work.

i used exactly what you said, this time not adding "webroot" dir to the string..

 

thank you!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...