Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Manual Config - What am i doing Wrong? (examples provided)


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

Oscommerce needs Apache and PHP...neither of these are native to windoze.

The apps that force them to work in a win enviroment are clumsey at best.

 

I would get your stuff on a good (even crummy) unix or linux server.

 

That will solve 99% of your problems.

Link to comment
Share on other sites

I know there are those who have gotten osc to run on a win sever.

 

I can't help much there.

 

I would give the same argument I use:

 

1.) win servers are NOT the standard in the industry. The cross platform performance is miserable.

2.) win hosting is usually more expensive.

a.) the service alone.

b.) reliability is poor, maintaince is high, another expense.

 

I can normally demonstrate a 50% savings in the first 6 months and this includes my labor.

 

The bottom line?

Buy a months worth of service yourself, set up a demo site and show 'em.

 

If they still insist on throwing money away...then forget about osc and get them a proprity windows store and save yerself the headach.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...