I’ve been developing an online store for a client and used Open Cart as the base. I needed to develope the store first before anything could go live so I created a directory and installed the entire system in there. I then realised that I would need to move the installation since I did a tremenduos amount of work already and customized the store extensively and I wasn’t going to go about re-creating all of that. To cut a long story short… if you are moving an installation within the same server, whether it is on the same domain or not all (using the same database) you have to do is this:

1> Find your config.php in your root folder (where you have your installation e.g.: http://www.yourdomain.com/folder).
2> Open in a text editor and change the following:

// HTTP
define(’HTTP_SERVER’, ‘http://www.yourdomain.com/admin/’);
define(’HTTP_CATALOG’, ‘http://www.yourdomain.com/’);
define(’HTTP_IMAGE’, ‘http://www.yourdomain.com/image/’);

// HTTPS
define(’HTTPS_SERVER’, ”);
define(’HTTPS_IMAGE’, ”);

// DIR
define(’DIR_APPLICATION’, ‘/home/yours/public_html/yourdomain.com/admin/’);
define(’DIR_SYSTEM’, ‘/home/yours/public_htmlyourdomain.com/system/’);
define(’DIR_DATABASE’, ‘/home/yours/public_html/yourdomain.com/system/database/’);
define(’DIR_LANGUAGE’, ‘/home/yours/public_html/yourdomain.com/admin/language/’);
define(’DIR_TEMPLATE’, ‘/home/yours/public_html/yourdomain.com/admin/view/template/’);
define(’DIR_CONFIG’, ‘/home/yours/public_html/yourdomain.com/system/config/’);
define(’DIR_IMAGE’, ‘/home/yours/public_html/yourdomain.com/image/’);
define(’DIR_CACHE’, ‘/home/yours/public_html/yourdomain.com/cache/’);
define(’DIR_DOWNLOAD’, ‘/home/yours/public_html/yourdomain.comdownload/’);

—> to your new folder.

3> Do the same in http://www.yourdomain.com/admin/config.php

And that’s it! You’re done!

Enjoy Open Source? Share... These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Ask
  • BlinkList
  • email
  • Facebook
  • Fark
  • Google Bookmarks
  • Hype
  • IndianPad
  • Laaik.it
  • LinkedIn
  • Live-MSN
  • Mixx
  • muti
  • MyShare
  • MySpace
  • NewsVine
  • Print
  • Propeller
  • Simpy
  • Slashdot
  • Smarking
  • Sphinn
  • Spurl
  • Squidoo
  • Technorati
  • TwitThis
  • Weblinkr
  • YahooBuzz
  • YahooMyWeb