User Tools

Site Tools


ispcp-move

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ispcp-move [2016/03/23 07:10]
ciscllc [Copy data to new server]
ispcp-move [2016/06/30 12:40] (current)
nuxwin old revision restored (2016/06/22 05:23)
Line 1: Line 1:
 +====== ISPCP 1.0.7 server migration made easy ======
 +
 After some migrations of the (very) old ispcp 1.0.7 to new servers before upgrading to i-mscp 1.2.15 I have a little "how to" for this. After some migrations of the (very) old ispcp 1.0.7 to new servers before upgrading to i-mscp 1.2.15 I have a little "how to" for this.
  
Line 4: Line 6:
 So this is more a workaround and may be adopted for i-mscp as well! So this is more a workaround and may be adopted for i-mscp as well!
  
-----+First: All Domains/​Users must be active! 
 +Do not deactivate users or domains when running the rsyncs!
  
 ====== Install ispcp on the new server ====== ====== Install ispcp on the new server ======
Line 20: Line 23:
 This will install ispcp 1.0.7 on any debian till 7 (8 not tested, may not work because of apache 2.4) This will install ispcp 1.0.7 on any debian till 7 (8 not tested, may not work because of apache 2.4)
  
-====== Copy data to new server ======+IF you have some problems with fastcgi get this file (and replace here /​var/​www/​ispcp/​engine/​setup):​  
 + 
 +<WRAP center round download 60%> 
 +http://​www.filedropper.com/​ispcp-setup-methods 
 +</​WRAP>​ 
 +====== Copy data **to** new server ======
  
 This is the tricky part, as you will need any data to run the new installed system but still have access to the new system. This is the tricky part, as you will need any data to run the new installed system but still have access to the new system.
Line 29: Line 37:
 </​WRAP>​ </​WRAP>​
  
 +Do this on your old server:
  
   # cat /etc/passwd | grep '​^vu.*:'​ > /​root/​passwd.vu   # cat /etc/passwd | grep '​^vu.*:'​ > /​root/​passwd.vu
Line 51: Line 60:
   # mysqldump --all-databases --opt -Qc --add-drop-database -p -r /​root/​mysqldump.sql   # mysqldump --all-databases --opt -Qc --add-drop-database -p -r /​root/​mysqldump.sql
   ​   ​
-Will do a complete backup of all your mysql databases. Remember: ALL your data! Including systempasswords as in +Will do a complete backup of all your mysql databases. Remember: ALL your data! Including systempasswords as in /​etc/​mysql/​debian.cnf (I would not just copy the file, just change the passwords here) 
 + 
 +  # rsync -az -e ssh /​root/​mysqldump.sql IP-of-new-server:/​root/​ 
 +  # rsync -az -e ssh /​var/​www/​virtual/​* IP-of-new-server:/​var/​www/​virtual 
 +  # rsync -az -e ssh /​var/​mail/​virtual/​* IP-of-new-server:/​var/​mail/​virtual/​ 
 +   
 +====== Things to do on the new server now ====== 
 + 
 +Get the old users (please check there are no double vu*s!) 
 +Restore the Database and run the request manager. 
 + 
 +  # cat /​root/​passwd.vu >> /​etc/​passwd 
 +  # cat /​root/​group.vu >> /​etc/​group 
 +  # cat /​root/​shadow.vu >> /​etc/​shadow 
 +  # mysql -p < /​root/​mysqldump.sql 
 +  # /​var/​www/​ispcp/​engine/​ispcp-rqst-mngr 
 + 
 + 
 +====== You made it! ====== 
 + 
 +   
 +Finally change the ip on your DNS, shut down the services on the old server and have a look at the logs of your new server. 
 + 
 +Simply restart anything on the old server if there are some errors on the new one. 
 +[[migration:​ispcp|Now do the migration to i-mscp 1.2.15]] 
 + 
 +You can rsync the mails after 1 day or so again, just to be shure there is no new mail on the old server. 
 + 
 +Have fun and PLEASE DO NOT USE ispCP IN 2016! 
 + 
 + --- //​[[[email protected]|Joe Strackar]] 2016/03/23 07:33//
/var/www/virtual/i-mscp.net/wiki/htdocs/data/attic/ispcp-move.1458717057.txt.gz · Last modified: 2016/03/23 07:10 by ciscllc