How to move site to other server?

There are two method to move site (e.g. we do not need to change domain name)

  • A - source server
  • B - target server

Method 1

  1. Stop cron at A
  2. Create DB backup at A
  3. Install script at B
  4. Copy inxy/var/config/user.php from A to B and change permissiong to 777. Change db params and paths inside user.php if required.
  5. Copy inxy/templates form A to B
  6. Write it hosts file IP server B ip for domain
  7. Go to site settings and click save to set passwords from old site.
  8. Copy thumbs from A to B
  9. Copy DB backup from A to B and restore it at B
  10. Change DNS
  11. Start cron at B
  12. Remove record from hosts

Method 2.

  1. Stop cron at A
  2. Create DB backup at A
  3. Copy all files from A to B. Change var/config/user.php if required
  4. Change files owner at B to web-server.
  5. Write it hosts file IP server B ip for domain
  6. Copy thumbs from A to B
  7. Copy DB backup from A to B and restore it at B
  8. Change DNS
  9. Start cron at B
  10. Remove record from hosts