Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

real problems when changing hosting


Guest

Recommended Posts

I am trying to move my store from one hosting account to another within the same hosting company.

 

The first problem is that I have uploaded the files but it has changed from

 

http://www.moreprofitablewebsites.com/osCommerce/catalog/

 

to

 

http://www.foneforce.co.uk/

 

The second problem I have is when I go to http://www.foneforce.co.uk/admin, it takes me to the admin at the old hosting account.

 

I have changed admin/includes/configure.php and includes/configure.php and have left no trace of the other. What else do I need to do.

 

Of course this means I can't restore the database and have a crappy looking shop. Please help!

Link to comment
Share on other sites

 <?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.foneforce.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.foneforce.co.uk');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/homepages/44/d151396679/htdocs/foneforce/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/homepages/44/d151396679/htdocs/foneforce/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/foneforce/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '//homepages/44/d151396679/htdocs/foneforce/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 . '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', 'xxxxxx'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'xxxxxx');
 define('DB_SERVER_PASSWORD', 'xxxxxx');
 define('DB_DATABASE', 'xxxxxx');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

That is admin/includes/configure.php

 

 

and this is catalog/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.foneforce.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.foneforce.co.uk');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/foneforce/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/foneforce/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');
 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', '/homepages/44/d151396679/htdocs/foneforce/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', 'xxxxxx'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'xxxxxx');
 define('DB_SERVER_PASSWORD', 'xxxxxx');
 define('DB_DATABASE', 'xxxxxx');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Link to comment
Share on other sites

Here are the changes it looks like you need to make. You have all of your WS paths going through foneforce/catalog/, but the web root seems to be your catalog root.

 

 

includes/admin/configure.php

 

  define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_FS_CATALOG', '/homepages/44/d151396679/htdocs/foneforce/catalog/');

 

includes/configure.php

 

 define('HTTP_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/');

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

I made those changes but nothing has changed. The website still looks the same and /admin still goes back to the old installation at the other url

Link to comment
Share on other sites

Yes, you are exactly right. I have now uploaded the changed version. You can see the result at www.foneforce.co.uk.

 

However, I am still having the same problem when I try to go to the admin. It still wants to take me to www.moreprofitablewebsites.com/oscommerce/catalog/admin.

 

I swear there is no reference to this in any file I can find. I searched the whole site using Dreamweaver. It's baffling me!

Link to comment
Share on other sites

Look in includes/local/ and admin/includes/local/ and see if you find any alternative configure.php files in either/both of the local folders. The local folder is for development work only and may include configure.php files - if you find any in there then either rename or delete them.

 

If you don't find any then it may simply be that as your new site is on the same shared server and same shared ip address that you need to wait for the cache to be updated on the server.

 

Vger

Link to comment
Share on other sites

No configure files in the local folders so I guess I'll have to wait and see what happens. I don't know if they are on the same IP etc. but they are definitely on the same hosting company. Is that the same thing?

Link to comment
Share on other sites

SUCCESS!! It finally twigged with me what the problem was. I had protected the admin with a .htaccess file which I had copied over. When I changed it, everything was ok. Now all I have to do is pay a plasterer to fix the wall where I was banging my head.

 

Thank you very much for helping me throughout this ordeal - especially the code changes required in the configure files and the extra knowledge I have gained.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...