Skip to main content

CentOS 5 to 7 upgrade/migration best practices, ideas

Comments

1 comment

  • cPanelMichael
    Hello, Most of your plan looks solid, but I'll address some of your concerns below:
    For a few select sites, I have to provide PHP 5.2, which was EOL on CentOS 5 ages ago, and was a real problem even then due to libpcre version requirements (we had to use 8.20 with it, while the system has PCRE 8.36 right now, but that's another story). It actually worked quite nicely with suPHP and .htaccess tricks, but the system had EasyApache3. I have no idea how difficult it will be with EA4 and CentOS 7...

    There's no support for EOL PHP versions on EasyApache 4. The current solution is to install CloudLinux and utilize the PHP Selector feature that does offer support for PHP 5.2: CloudLinux - Main | New template
    My problem with this approach is that the CentOS 5 and 7 systems will have different cPanel versions (the old one is stuck on 11.56 by now), different archs (i686 vs. amd64), and this might introduce errors during restore; only the cPanel developers could tell for sure.

    Both the backup/restore and "Transfer Tool" features will accommodate for the differences and it should not result in any problems.
    Would I need to change the DNS zones for every account to have the 400.500.600.12 IP before the transfer on the CentOS 5 system? Some zone files have custom additions too, like manually added CNAME, A, TXT records and a few subdomains delegated to other DNS servers, so I would feel better to leave them alone and just get them copied to the CentOS 7 system as-is. What are the expectations of the Transfer Tool? Would it get surprised if it sees its own "shared IP" in there, expecting it to have the remote server's main IP?

    The "IP Migration Wizard" will allow you to update the IP addresses for each domain name after the transfer process. It's documented at: IP Migration Wizard - Documentation - cPanel Documentation However, you may also want to create a separate backup of the /var/named directory on the source server in-case you encounter any issues with the DNS zones post-transfer. There's also a "Minimize Your Downtime" tab on the following document that offers some additional tips: cPanel Migration Services and Guides - cPanel Knowledge Base - cPanel Documentation
    So, that's the plan, and I have to decide to do 4/a or 4/b. Maybe a 4/c solution? It would be nice to minimize downtime, and I have a feeling that a backup-network mount-restore sequence probably takes longer than the Transfer Tool between two running systems, but the IP/DNS changes might confuse it.

    I suggest using the "Transfer Tool". It's designed for this purpose, and logs everything during the process: Transfer Tool - Documentation - cPanel Documentation There's also a blog post here you may find helpful: March 31st, 2017: The Day the Sun Sets on CentOS 5 | cPanel Blog Let us know if you have any additional questions. Thank you.
    0

Please sign in to leave a comment.