upgrading and migrating

Discussion in 'Installation/Configuration' started by ariban99, Dec 10, 2019.

  1. ariban99

    ariban99 Member

    Hi
    I want to upgrade to the latest ispconfig 3 server using centos and php 7.2, i will follow this https://www.howtoforge.com/tutorial...l-php-pureftpd-postfix-dovecot-and-ispconfig/
    i have a few questions if someone can help me please

    1. can this be installed in centos 8 minimal install instead of 7?
    2. can we install php 7.3 or 7.4 by this part:
      1. yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
      2. yum-config-manager --enable remi-php72 (do i change this to php73 or php74?)
    3. can i copy the entire database for ispconfig and simply upload it to the new server? will all emails, postfix filters, websites, dns etc.. be copied and function well? i imagine i need to sync it once copied?
    4. of course i will also copy all files for website etc...
    5. the last time i copied all emails from an older server to the new one, i copied folder /var/vmail, however on the new server, all emails came in as NEW UNREAD, is there a way to copy them and whatever is read should be marked as read and whatever is unread should be marked as unread?
    Thank you in advance and i appreciate all your help
    Ben
     
  2. Steini86

    Steini86 Active Member

    No, you need to take additional care. See https://www.howtoforge.com/community/threads/i-need-to-install-ispconfig-on-centos-8.82929/
    Should work. However, if the versions of the used software (like postfix/dovecot/apache/etc..) differ, there can be problems (if you know what you are doing, there should be no show-stopper).
    Alternatively you could use the migration script: https://www.ispconfig.org/add-ons/ispconfig-migration-tool/
    See: https://wiki2.dovecot.org/Migration
    If dovecot versions agree, copying should be possible if done right (file permissions, etc). Alternatively use dovecots dsync tool: https://wiki2.dovecot.org/Migration/Dsync
     
  3. ariban99

    ariban99 Member

    thank you for your response. this helps alot
    i will stay with centos 7 for now.
    i will migrate mails according to the instructions given
    i will have to use the migrating tool as the php versions are different. i dont want to take a chance
     
    Steini86 likes this.
  4. Steini86

    Steini86 Active Member

    PHP versions 'should' not matter. However, the migration tool is tested and you get better support.
     
  5. ariban99

    ariban99 Member

    thank you and sorry for my ignorance.
    i am currently on centos 7.2 with ispconfig3.1
    do you think it safe to simply copy and paste the database of isconfig over to the new server?
     
  6. Steini86

    Steini86 Active Member

    Yes. See: https://www.zvonimir-buzanic.from.hr/migration-of-ispconfig-3-to-new-server (It is for Debian, but just ignore the apt things)
    In the end it comes down to move the data and database
    - Open /etc/passwords, /etc/groups, /etc/gshadow and /etc/shadow and copy only webXXX lines to new server.
    - Open /etc/fstab and copy lines with /var/log/ispconfig/…: to new server
    Save files and database
    Code:
    tar -pczf old_backup.tar.gz /var/vmail /var/log /var/www /usr/local/ispconfig/interface/lib /usr/local/ispconfig/server/lib
    mysqldump -u root -pXXXXXXXX –all-databases –events > old_db.sql
    Move old_backup.tar.gz and old_db.sql to new server (scp, rsync or such)
    - Extract backup and install database on new server
    Code:
    tar xvfz old_backup.tar.gz
    mysql -u root -pXXXXXX < /old_db.sql
    Important: Resync all services
    Code:
    cd /tmp
    wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
    tar xvfz ISPConfig-3-stable.tar.gz
    cd ispconfig3*/install/
    php -q update.php
    Choose 'reconfigure services = yes' (!)

    Reboot and adjust IP of new server.

    (do not forget things like letsencrypt certificate if used or other adjusted configs)
     
    Last edited: Dec 11, 2019

Share This Page