Tips on migrating from Ubuntu 20 to Ubuntu 24

Discussion in 'Tips/Tricks/Mods' started by concept21, Aug 29, 2024.

  1. concept21

    concept21 Active Member

    Hello Friends,
    I am going to migrate my Ubuntu 20.04 ISPConfig 3.2.12 to another fresh Ubuntu 24.04 configured by ISPConfig-autoinstaller.

    My server is simple.
    1. A VPS with 8GB RAM.
    2. Managed by myself with root access.
    3. Running Nginx.
    4. 2 different FQDN web sites managed by myself.
    5. 2 mail boxes of the above FQDN.
    Now, my questions are: :oops:
    1. Which parts of my old server (ISPConfig 3.2.12 related) should I backup and restore later?
    2. Should I build the new Ubuntu 24.04 VPS with exactly the same hostname as the old server's, for example, subdomain.mydomain.com?
    Please guide me through. I am too poor to buy ISPCopy. After all, I have already donated about Euro50 since I began to use it for hobby. :D
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    In the forum, you can find various threads about manually migrating / moving ISPConfig to a new server.
     
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Alternatively, backup and restore the whole old server into the new vps and upgrade your OS in there. It is actually not difficult to upgrade OS and all services in a server.
     
  4. concept21

    concept21 Active Member

    Does Ubuntu OS hot upgrade ever work? :oops:
    I have never considered this option before.:mad:
     
    Last edited: Aug 30, 2024
  5. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I have been doing that since Ubuntu 16.04 :rolleyes:
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ubuntu and Debian live upgrades typically work fine. I do this on all of my systems regularly.
     
    ahrasis likes this.
  7. concept21

    concept21 Active Member

    Two ISPConfig3 Experts approve this method.
    Let me do a complete image backup of my VPS and try.

    I hope you are not taking me in. I am very scared about this method. :(
     
  8. concept21

    concept21 Active Member

    The OS upgrader has uninstalled the rspamd and goaccess.
    What should I do now? :(
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Install it again and then run an ISPConfig update and let the updater configure them.
     
    ahrasis likes this.
  10. concept21

    concept21 Active Member

  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Might be that the php-fpm socket path in the apps vhost is not correct after the update.
     
    ahrasis likes this.
  13. concept21

    concept21 Active Member

    I have given up this upgrade method.
    There are many problems.

    I am following the safer method:
    1. Install a fresh 24.04 OS.
    2. Install ISPConfig3 on it.
    3. Recreate my 2 sites manually.
    4. Restore the sites and emails from the old server's backup.
    5. Then, point the new server IP to the server host name in the ISP DNS.
    6. Both old and new ISPC server must have the same host name.
    7. Even if it does not work, my old ISPC server is still running on the old IP. It seems a very safe method for small server with very few user account. :oops:
     
  14. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

  15. concept21

    concept21 Active Member

  16. till

    till Super Moderator Staff Member ISPConfig Developer

    There will be an upgrade tutorial for Ubuntu 22.04 to 24.04 published soon. We finished it, but it needs some more testing. Thanks to @Th0m for writing the guide.
     
    concept21 and ahrasis like this.
  17. concept21

    concept21 Active Member

    It seems working even though imperfect.
    It is the log of ISPConfig Cron - Log
    How do I correct it? :rolleyes:

    Also, the guide suggested us to update phpmyadmin as following. Does it work on my new Ubuntu 22.04 + Nginx server? :oops:
    https://forum.howtoforge.com/thread...automatically-how-to-update-phpmyadmin.88495/
     
    Last edited: Sep 10, 2024
  18. concept21

    concept21 Active Member

    some more imperfection after my hot OS upgrade.
    ISPConfig Cron - Log
    Overall, it is a good valid hot OS upgrade. webmail and phpmyadmin work now. :)
     
  19. concept21

    concept21 Active Member

    Great!
    Let me wait before I invest new money on my site.
     
  20. aa6tem

    aa6tem New Member

    I had to reinstall rspamd, and fix roundcube with this extra line:
    $config['smtp_host'] = 'localhost:25';
    after carelessy just upgrading my vps ....
     

Share This Page