Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Move your store to a new host

  • If you are running a live store and want to move your site to a new host then you will need to be careful that you test your move before taking down your existing site to avoid disruption to your customers.
  • Make sure that you pick a time when your store is quiet and that you have a backup of your current site before doing anything … so that you can put everything back if something goes wrong - You have been warned!

Database

  1. Goto your new host and open phpMyAdmin (or similar)
  2. Create a new database to hold your store
  3. Add a new user to this database
  4. Run the SQL file you created during the backup in phpMyAdmin
  • You should now have a copy of your database on your new host!

Store

  1. FTP your store files from your local machine to your new host
  2. Now in order to get your store to work on your new host you will need to edit the configure.php files within osCMax to match your new server settings.

Please note there are 2 configure.php files - one in admin/includes/ and one in includes/

2 Gotchas to look out for

  1. When you move your store don't forget to go into cPanel (or similar) and redo your .htaccess file otherwise you will get a 500 HTTP error when you try and get into your admin panel.
  2. When you install your database through phpMyAdmin and you add your database user - you need to remember to go to cPanel > Databases > MySql databases > Add a User to a Database > Click Add > Grant All Privileges. Otherwise you will get an annoying error that looks like this: 1046 - No database selected select value from sessions where sesskey

Don't know how to set the server settings in configure.php?

  • This is common issue for people when moving their store - so don't worry! Rather than go through each line of the configure.php files one by one you may find it easier to install the latest version of osCMax onto this new server - copy down the server settings from the configure.php files and then complete the steps above.
  • If you don't want to do this then you will need to hand edit the configure.php files

Changes to be made

  • Below is a list of the main changes that need to be made to the configure files … don't forget to go through both of them - one in the admin side and the other in the catalog!

  define('HTTP_SERVER', 'http://www.yourservername.com');
  define('HTTPS_SERVER', 'https://www.yourservername.com');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', 'www.yourservername.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.yourservername.com');

...

  define('DIR_FS_CATALOG', '/home/sites/yourservername.com/public_html/');

...

  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', 'your_user_name');
  define('DB_SERVER_PASSWORD', 'your_password');
  define('DB_DATABASE', 'database_name');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');

  • Bookmark at
  • Bookmark "Move your store to a new host" at Digg
  • Bookmark "Move your store to a new host" at Furl
  • Bookmark "Move your store to a new host" at Reddit
  • Bookmark "Move your store to a new host" at Google
  • Bookmark "Move your store to a new host" at StumbleUpon
  • Bookmark "Move your store to a new host" at Technorati
  • Bookmark "Move your store to a new host" at Facebook
  • Bookmark "Move your store to a new host" at Twitter
  • Bookmark "Move your store to a new host" at Slashdot
v2.5/move_your_store.txt · Last modified: 2015/11/19 13:54 by pgmarshall
You are here: startv2.5move_your_store
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0