Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

move to root problems


Guest

Recommended Posts

Posted

Help...

 

I can't figure whats wrong here.

 

I want to move the catalog to root.

 

It works fine on my local server. But on my internet server..nada.

 

http://dewey.cnw-designs.com/catalog/default.php

 

http://dewey1.cnw-designs.com/

 

(catalog and lang) default.php ren to index.php

 

define default in /includes/application_top.php = index.php

 

won't find images or the stylesheet

 

configure.php:

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'http://dewey1.cnw-designs.com'); // eg, http://localhost - should not be NULL for productive servers

define('HTTPS_SERVER', 'https://dewey1.cnw-designs.com'); // eg, https://localhost - should not be NULL for productive servers

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

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

define('DIR_WS_IMAGES', 'dewey1/images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

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

define('DIR_FS_CATALOG', '/htdocs/dewey1/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'db.XXX.com'); // eg, localhost - should not be NULL for productive servers

define('DB_SERVER_USERNAME', 'XXX');

define('DB_SERVER_PASSWORD', 'XXX');

define('DB_DATABASE', 'XXX');

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

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

?>

 

any ideas?

Posted

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

define('DIR_WS_IMAGES', 'dewey1/images/');

 

Try it this way->

 

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

define('DIR_WS_IMAGES', 'images/');

Posted

You need to tell osc the correct folder for the files :wink:

 

Change

 

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

define('DIR_WS_IMAGES', 'dewey1/images/');

 

to

 

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

define('DIR_WS_IMAGES', '/images/');

 

 

This does not look right either, but you wont see the issues until later

define('DIR_FS_DOCUMENT_ROOT', '/htdocs'); 

define('DIR_FS_CATALOG', '/htdocs/dewey1/');

Typicall this path starts at the server root,

 

like

usr/local/home/httpd/htdocs/

 

Check with your host on this one, also the install script should of set these params for you.

Best Regards,

 

Salvatore Iozzia

 

Loaded Commerce - Oscommerce - All Loaded Up.

Posted

As an example, it's looking for your logo here:

 

http://dewey1.cnw-designs.comdewey1/images...logo3_r2_c1.gif

 

Notice there's no / between the .com and dewey1.

 

Therefore:

 

define('DIR_WS_IMAGES', 'dewey1/images/');

 

should really be

 

define('DIR_WS_IMAGES', '/dewey1/images/');

 

8)

 

Oops...just realiezed the images aren't there after all.

 

Make that:

 

define('DIR_WS_IMAGES', '/images/');

 

You'll also have to change:

 

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

 

to

 

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

Posted

:D :D :D We're all on the same wavelength today.....That's scary...

Posted

Gee...

 

Do I feel stupid!

 

that was a little obvious,eh?

 

 

Shows what happens when you get stuck on something...tunnel vision.

Posted

yeah obvisous after a few years and a couple hundred installs, dont beat yourself up. just try to come up with a harder issue next time :P

Best Regards,

 

Salvatore Iozzia

 

Loaded Commerce - Oscommerce - All Loaded Up.

Archived

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

×
×
  • Create New...