Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in Path


luca75

Recommended Posts

Posted

When I go ti admin panel and click on: "Online catalog" the link is: www.mydomain.com/catalog/catalog/ but this is the only bad link in my configuration on MS1

 

Any help?

Posted

i started the setup today and i dont know how it all works, but think u have to correct the path in configure.php

Posted

Hi Luca, you have an error in your /admin/includes/configure.php

 

In this file you declare some global variables, I paste u this file from my server, modify it in order to suit your server paths:

 

 

<?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.yourdomain.com');

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

define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.com');

define('ENABLE_SSL_CATALOG', 'true');// IF YOU HAVE APACHE SSL CONFIGURED SET THIS TO TRUE

define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/'); //Absolute Linux Filesystem path

define('DIR_WS_ADMIN', '/admin/'); // absolute WEB SERVICES path to admin tool. PROBABLY YOU HAVE HERE THE PROBLEM

define('DIR_FS_ADMIN', '/var/www/html/admin/'); // absolute LINUX FILESYSTEM path required

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

define('DIR_FS_CATALOG', '/var/www/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 . '/var/www/html/catalog/includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . '');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . '/var/www/html/catalog/includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // IP or DNS name of your database server

define('DB_SERVER_USERNAME', 'xxx');

define('DB_SERVER_PASSWORD', 'xxx');

define('DB_DATABASE', 'catalog');

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

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

?>

 

I'm not a OSC expert, just a newbie, but I hope my reply can help u.

Best regards from Spain

Posted

Hi, thank you for replay, my error is in the 'HTTP_CATALOG_SERVER' I have write www.mysite.com/catalog

 

Thank you again for your help

Archived

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

×
×
  • Create New...