How To Migrate an OsCommerce Store
![]() |
![]() |
I recently moved an oscommerce store I host from one server to another. But when I did this I wanted to change some of the core elements, such as making the domain http://www.address.com instead of http://www.address.com/catalog which looks messy.
So after I migrated the site using my favorite FTP program for the Mac, TRANSMIT (Big Up!), I made sure to change all the obvious settings in my admin/includes/configure file as well as my includes/configure.php file.
After a bit more fiddling with porting over the SQL database the store was running great, however the ADMIN section was having heaps of problems, beginning with the images directory. I kept getting the following error.
Error: Catalog images directory does not exist:
Problem: this directory DOES exist.
Fix: change the admin/includes/configure.php file to reflect the following…
old: define(‘DIR_WS_CATALOG_IMAGES’, DIR_WS_CATALOG . ‘images/’);
new: define(‘DIR_WS_CATALOG_IMAGES’, ‘../images/’);
old: define(‘DIR_WS_CATALOG_IMAGES’, DIR_WS_CATALOG . ‘images/’);
new: define(‘DIR_FS_CATALOG_IMAGES’,’../images/’);
reload the admin page and the error will disappear.
_The Sheik


No comments yet.