Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving OScommerce


hendrickx

Recommended Posts

I've got OSCommerce live in /oscommerce

 

I want to move it to /

 

I moved these files:

 

index.php, images, includes

 

When I pull up index.php, an example from the categories list still points to:

/oscommerce/index.php/cPath/64

 

if I type in cPath/64 on the end of the new index.php URL, it works. I've searched includes for 2 hours and can't find any reference to the /oscommerce directory.

 

Where is it refrencing this and how do I fix it???

 

Thanks!

 

--

Chris Hendrickx

Link to comment
Share on other sites

for the catalog

includes/configure.php file needs editing (removing the directory)

 

also admin/includes/configure.php for the admin side

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

If you want to move osCommerce from the folder you have it in e.g. oscommerce, then you have to move all of it - unless you want to get into a real mess.

 

Download all of the files and folders you have within the folder 'oscommerce' and upload them again to your root directory (without the 'oscommerce' folder). Don't forget to upload all page files using ascii mode and all images files in binary mode. Once that's done go into both of your configure.php files and alter the file pathways, taking out all references to 'oscommerce/'

 

Vger

I've got OSCommerce live in /oscommerce

 

I want to move it to /

 

I moved these files:

 

index.php, images, includes

 

When I pull up index.php, an example from the categories list still points to:

/oscommerce/index.php/cPath/64

 

if I type in cPath/64 on the end of the new index.php URL, it works. I've searched includes for 2 hours and can't find any reference to the /oscommerce directory.

 

Where is it refrencing this and how do I fix it???

 

Thanks!

 

--

Chris Hendrickx

The Brass Bell where magick happens every day!

Link to comment
Share on other sites

  • 2 weeks later...

OK. I've done as requested below, still no help. See http://www.thebrassbell.net/oscommerce2 for what I'm talking about. The categories on the left still link to the oscommerce directory, not oscommerce2.

 

Here's includes/configure.php:

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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.thebrassbell.net'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.thebrassbell.net'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.thebrassbell.net');
 define('HTTPS_COOKIE_DOMAIN', 'www.thebrassbell.net');
 define('HTTP_COOKIE_PATH', '/oscommerce2');
 define('HTTPS_COOKIE_PATH', '/oscommerce2');
 define('DIR_WS_HTTP_CATALOG', '/oscommerce2/');
 define('DIR_WS_HTTPS_CATALOG', '/oscommerce2/');
 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', 'pub/');
 define('DIR_FS_CATALOG', '/home/virtual/site19/fst/var/www/html/oscommerce2/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
// NOTE: I left this info out of this post intentionally, the username and password 
// really are not blank.
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', '');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Here's admin/includes/configure.php:

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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.thebrassbell.net'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.thebrassbell.net');
 define('HTTPS_CATALOG_SERVER', 'https://www.thebrassbell.net');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/virtual/site19/fst/var/www/html/oscommerce2/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/oscommerce2/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/virtual/site19/fst/var/www/html/oscommerce2/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/oscommerce2/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/virtual/site19/fst/var/www/html/oscommerce2/'); // 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/');

// define our database connection
//again, I blanked out the username and password for security
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', '');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

In my directory where all this is installed and in my admin directory for oscommerce 2, I've run this:

 

grep -r "/oscommerce" *

 

and only gotten hits on oscommerce2. I also tried

 

grep -r "oscommerce" *

 

and got oscommerce2, and a lot of oscommerce.com

 

Ideas? Solutions?

 

Thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...