Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Making the store at webroot level


idbeu

Recommended Posts

Posted

Hey, I have a smallish question.

 

I have been trying to create the store at store.websiteaddress.com. I don't want store.websiteaddress.com/catalog/.

 

I dumped everything in the /catalog/ folder into the root directory, and put the admin folder inside root also. I set everything up that way when I configured it.

 

It seemed to work just fine, but when I tried to upload an image for one of my products, it gave me a 'cannot put image into folder... wrong directory, something something' error. My question is, is this a situation somone else has already solved, or is it simply not possible?

 

Thanks!

Posted

The specific error I recieve is:

 

Warning: open_basedir restriction in effect. File is in wrong directory in /home/.newman/jbeck/store.jamesbeck.com/catalog/admin/ includes/functions/general.php on line 783

 

Although I noticed that this happens in any configuration I use. Hmm. Perhaps it's something else.... my browser (Opera 6.04)? Any ideas how I can get rid of this error?

Posted

Did you change your configuration.php to:

 

 

// 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 NULL for productive servers

define('HTTPS_SERVER', 'https://YOURDOMAIN.COM'); // eg, https://localhost - should not be NULL for productive servers

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

define('HTTPS_CATALOG_SERVER', 'https://YOURDOMAIN.COM');

define('ENABLE_SSL', 'true'); // secure webserver for administration tool

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

define('DIR_FS_DOCUMENT_ROOT', '/ROOT/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/ROOT/admin/'); // absolute pate required

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

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

Archived

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

×
×
  • Create New...