Migrating customers to a new server platform

Discussion in 'ISPConfig 3 Priority Support' started by Steinbruch, Jun 28, 2024.

  1. Steinbruch

    Steinbruch Member HowtoForge Supporter

    Hi,
    I have a rather complex issue: A reseller of mine would like to migrate to PHP8 and the approach we came up with would be to mirror the entire contents of his server to a new machine (with PHP8 and various other amenities) but otherwise staying in the same ISPconfig environment as their server should not host a standalone ISPconfig.
    I was wondering if the following approach has any chances of working:
    - existing server is Debian 10 / PHP7.3 - call it "Server 1"
    - we would add one new Web/DB server with Debian 12 / PHP8.2 and set this as mirror of "Server 1" - we'll call it "Server 2"
    Obviously, I'd have to manually copy over the actual _contents_ of Server 1 to Server 2 but other than that ISPconfig should be able to handle the rest.
    Now for the interesting part: For any web domain in Server 1, would I be able to switch the DNS to Server 2 so we could see if things run ok with PHP8.2 or need further adjustments? Those should be possible to do on Server 2 as ISPconfig does not synchronize any user files or DBs, correct?
    And then finally, once we've switched everything over DNS-wise - could we simply drop the original server from the setup as it would be no longer needed?
    Just for sake of completeness - the customers also use a separate machine as Email server - that setup should remain entirely untouched.
    Or am I making things unnecessarily complicated?
    Thanks :)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can have different OS as long as the ISPConfig version is the same on all systems.

    Normally, you do not alter DNS for that. All you do is to change the hostname on the client system that you want to use for the test. This works on Windoes, Linux and Mac clients: https://www.faqforge.com/linux/serv...ess-a-namebased-website-without-a-dns-record/

    This is not possible. You can not drop the master of a mirror setup without removing the mirror as well.

    Using a mirror for what you are trying to achieve does not make much sense to me, as you would not be able to ever remove the master. Better do a normal system migration, test it, and then resync right before you switch over to the new server.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Support for Debian 10 ends tomorrow. See https://wiki.debian.org/LTS.
    You write about mirroring, but I do not see why mirroring would be needed for what you describe. You would just copy website files and databases from old host to new.
    You could install a new Debian 12 system, then ISPConfig on that using auto install. This way you get additional PHP versions, allowing PHP version to be set by website. It is unlikely that all PHP 7.3 code runs on PHP 8.x. After installing the additional versions, you can select them for use on specific websites in both PHP-FPM and FastCGI mode.
    There is ISPConfig Migration Toolkit for moving the data from old server to new. https://www.ispconfig.org/add-ons/
     
  4. Steinbruch

    Steinbruch Member HowtoForge Supporter

    Thanks for your replies - I have actually chosen to try installing additional PHP versions and this seems to do the trick for the time being.

    I am unsure about the migration toolkit as this is a multi-server-setup and I don't see this (migrating from one client node to another) is a scenario covered by the migration toolkit. Correct me, please, if I'm wrong here.

    Anyway, imminent issue solved, note about Debian support taken (well - it was on the radar anyway) but I've given people notice to verify they're at least PHP 7.4 compliant so I could move to Debian 11 - Debian 12 will follow when PHP8 migration is done and dusted as I don't feel like putting old PHP versions on newer OSes. (I'm also not providing PHP5.6 on any but one remaining legacy machine for those extremely hesitant to migrate - leaves me with a good overview of what I need to shut down if (or when) I need to :)
     
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    This is supported.

    You can use additional PHP versions for your sites so you don't have to deprecate support. This is very commonly done. See https://www.howtoforge.com/ispconfig-php-debian/
     

Share This Page