![]() |
Moving ISPconfig
Hi All!
I need moving ISPconfig from Server A to Server B. Server A is a server in production. This must be repaire. I need moving all ispconfig: acounts, emails, passwords, webs... I have backup of Server A: /etc /home/www /var/lib/mysql How can i do it?. I think make: 1- Install software in Server B: postfix, mysql, php, apache, courier, proftpd and others. 2- Install a new ISPconfig 3- Replace the files /etc /home /var/lib/mysql Is it correct? I can't install a software for backup. I only can use scp or rsync. Regards, |
Make a backup of /etc/passwd, /etc/shadow, /etc/group, Vhosts_ispconfig.conf, /etc/postfix/local-host-names, /etc/postfix/virtusertable, named.conf, all the pri.* zone files, /etc/proftpd*.conf. Also create sql dumps of your MySQL databases (either with phpMyAdmin or on the command line: http://www.howtoforge.com/faq/6_3_en.html ) and make a backup of /home/www on the old server:
Code:
cd /homeCode:
/etc/init.d/postfix stopCode:
cd /var/spoolOn the new server: First install ISPConfig. Create the databases from the sql dumps (either with phpMyAdmin or like this: http://www.howtoforge.com/faq/6_4_en.html ). Also replace the ISPConfig database with the old one. Regarding the mysql database: have a look at the users and db table and add the user /db lines that don't exist on the new server but on the old server. Copy local-host-names and virtusertable to /etc/postfix; open local-host-names and replace the old hostname with the new one. Run Code:
postmap /etc/postfix/virtusertableReplace Vhosts_ispconfig.conf with the one from the old server; then open it and replace the old IP address with the new one. Transfer www.tar.gz to /home and unpack it: Code:
cd /homeCode:
cd /tmpTransfer named.conf and all pri.* files to the new server. Also all proftp*.conf files; open them and replace the old IP address with the new one - also do this with the file names of the proftpd*.conf files. Restart ProFTPd: Code:
/etc/init.d/proftpd restartCode:
/etc/init.d/apache restartOn the old server, create a Postfix transport now so that all emails are forwarded to the ne server (for the time until the MX records of your domains have switched to the new server): Code:
echo "* smtp:[<IP address of new server>]" >> /etc/postfix/transportLots of steps to do... (if you want, you can have Till and me do that, but it's not free. Have a look here: http://www.ispconfig.org/support.htm ). |
your explanation worked all too beautiful for me, but I have one problem left: now root is the owner of /var/www and thats not ok. whats the easiest way to change back? could I not modify something in the ispconfig panel and click save - would that modify the sites ownership?
I could not get the part with /etc/passwd and /etc/shadow done before unpacking stuff (otherwise the ownership would have been preserved I guess) whats the quickest way? to unpack again? |
Did you do this on your old server?
Code:
cd /var |
of course not. that was the problem.
ok, now that I don't have the original information I guess I will do the reinstall again, add sites, users and stuff manually and then only copy the really needed material into the subfolders... thx for the help, your howto move from one server to another is great one juts has to be able to read to get it done ;-) |
"Also create sql dumps of your MySQL databases (either with phpMyAdmin or on the command line: http://www.howtoforge.com/faq/6_3_en.html )"
Is there a way to make a backup of the customer sql satabase if they have a password that you dont know from the command line. ie if I have 50 customers all with a sql database I dont want to have to type in the command line 50 times and find out what password they have. Any thoughts |
well I just used root and my rootmysql password, I do not know any clients passwords... if thats what you mean...
|
No thats fine... it is what I was asking...
|
If there's two IP where's ISPConfig server, like
LAN:192.168.123.200 and WAN:87.116.136.92 LAN:192.168.123.201 and WAN:87.116.136.92 is it necessery that new production server is at the same LAN IP? Once when it is setup, and when all of the backup data is transfered onto him? |
You can change the IP address as described here: http://www.howtoforge.com/forums/showthread.php?t=2760
|
| All times are GMT +2. The time now is 07:49. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.