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
- Stop cron at A
- Create DB backup at A
- Install script at B
- 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.
- Copy inxy/templates form A to B
- Write it hosts file IP server B ip for domain
- Go to site settings and click save to set passwords from old site.
- Copy thumbs from A to B
- Copy DB backup from A to B and restore it at B
- Change DNS
- Start cron at B
- Remove record from hosts
Method 2.
- Stop cron at A
- Create DB backup at A
- Copy all files from A to B. Change var/config/user.php if required
- Change files owner at B to web-server.
- Write it hosts file IP server B ip for domain
- Copy thumbs from A to B
- Copy DB backup from A to B and restore it at B
- Change DNS
- Start cron at B
- Remove record from hosts
|