Prev Previous Post   Next Post Next
Old 16th June 2009, 09:52
reason8 reason8 is offline
Senior Member
Join Date: Aug 2008
Posts: 141
Thanks: 2
Thanked 0 Times in 0 Posts

Originally Posted by falko View Post
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: ) and make a backup of /home/www on the old server:

cd /home
tar -pczf www.tar.gz www/
Stop Postfix:
/etc/init.d/postfix stop
If you use mbox, also make a backup of /var/spool/mail:
cd /var/spool
tar -pczf mail.tar.gz mail/
If you use Maildir, the mailboxes are included in www.tar.gz.

On the new server:
First install ISPConfig.
Create the databases from the sql dumps (either with phpMyAdmin or like this: ). 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
postmap /etc/postfix/virtusertable
and restart Postfix.
Replace 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:
cd /home
mv www www_orig
tar xvfz www.tar.gz
If you had to make a backup of /var/spool/mail, transfer mail.tar.gz to /tmp and do this:
cd /tmp
tar xvfz mail.tar.gz
cd mail
cp -pf web* /var/spool/mail/
Have a look at your backups of /etc/passwd, /etc/shadow and /etc/group and add the lines that don't exist in these files on the new server to /etc/passwd, /etc/shadow and /etc/group on the new server.
Transfer 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:
/etc/init.d/proftpd restart
Restart Apache:
/etc/init.d/apache restart
Log in to ISPConfig and go to Management -> Server -> Settings and change the IP address(es) there. Then go to the DNS Manager and also changes the IP addresses in the DNS records, if necessary.

On 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):
echo "*  smtp:[<IP address of new server>]" >> /etc/postfix/transport
postmap /etc/postfix/transport
/etc/init.d/postfix restart
On the new server, open /etc/postfix/local-host-names and add the hostname of the old server at the bottom so that the new server accepts the forwarded mails.

Lots of steps to do... (if you want, you can have Till and me do that, but it's not free. Have a look here: ).
What if you dont have a Vhosts_ispconfig.conf? I have /etc/apache2/sites-available/ispconfig.conf and /etc/apache2/sites-enabled/000-ispconfig.conf
Also, I dont know what I named the MySQL DB (not exactly atleast). Where would I find this in the config files? I did a updatebd and locate but nothing is coming up.


ISPConfig 3
openSUSE Linux 11.3

Last edited by reason8; 16th June 2009 at 10:11.
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot access ispconfig site Nu2Linux Installation/Configuration 13 3rd January 2009 16:29
Users and websites aren't created Glorfindel Installation/Configuration 9 23rd February 2006 05:20
42goISP vs. ISPConfig nveid General 1 16th January 2006 10:07
Mirroring ISPConfig with DRBD rodriglm General 5 2nd January 2006 13:48
Moving mail in ISPConfig rodriglm General 3 7th December 2005 10:44

All times are GMT +2. The time now is 13:35.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.