Skip to main content

Move accounts to new server

Comments

17 comments

  • rhm.geerts
    We provide a guide on how to do this at:
    Yep, as I've stated I had read that guide but was confused about the ip changes mentioned there. But due to your answer I presume this is only needed when there is a new server which will get the same ip('s) as the old server. Your answer to my question 1.) explains I can skip it. Thank you for answering the other questions too. Since question 5 was not answered, I presume I have my list fairly complete and I'm ready to go. Thank you!
    0
  • cPanelMichael
    Hello, Feel free to let us know if you encounter any issues during the migration, or have any additional questions. Thank you.
    0
  • rhm.geerts
    I have a little issue before transferring. I setup nameservers but userd 3, because one was added automatically, a datacenter nameserver. I only want two from the two ip's we got. I removed the 3rd from the Basic configuration, it's not displayed there anymore. However, it keeps getting mentioned when looking with "Nameserver Record Report", even after a reboot of the server. How can I remove it from there so only the really present nameservers are stated there?
    0
  • cPanelMichael
    However, it keeps getting mentioned when looking with "Nameserver Record Report", even after a reboot of the server. How can I remove it from there so only the really present nameservers are stated there?

    Hello, The Nameserver Record Report option in WHM is simply displaying information from your existing DNS zones. Is it possible you transferred or created some accounts before removing that third-name server in "WHM >> Basic Configuration"? That option only applies to new DNS zones, so for the existing zones, you'd need develop a command based off the workarounds discussed on the following thread: How to remove a few DNS records from all zone files? Bulk DNS Zone Update Bulk DNS insert Or, if it's only a few domain names that already exist, simply remove the record manually using "WHM >> Edit DNS Zone". Thank you.
    0
  • rhm.geerts
    Is it possible you transferred or created some accounts before removing that third-name server in "WHM >> Basic Configuration"?
    Yes, I created 1 account probably before removing that 3rd nameserver. Or, if it's only a few domain names that already exist, simply remove the record manually using "WHM >> Edit DNS Zone".
    I did that, so it's not present there anymore. There are 4 dns zones there. mydomain.com ns1.mydomain.com ns2.mydomain.com server.mydomain.com I editted all 4 manually and none of them have the 3rd nameserver present which is called robotns3.second-ns.com. I also searched with grep to find the ip in /var/named but that ip is not present anywhere in /var/named. Even checked them manually by editting the 4 files. Due the the last line, it seems none of the 3 solutions you provided will work, because of the lack of presence in those files.
    0
  • cPanelMichael
    Hello, Try running the following command to make sure it's not just cached data you are seeing:
    /scripts/updatenameserverips
    Thank you.
    0
  • rhm.geerts
    That did the trick, it was indeed cashed info!
    0
  • rhm.geerts
    Found another pre-move question for you. :) The datacenter did some Cpanel preinstall. You have to login to WHM to configure the rest. What I see is that multiple versions of php get installed. Like php 5.5, 5.6 and 7.x. I don't mind and I also see that I can deselect them. But what happens with those, can the users select which php version they want to use? And what about mod_ruid2? I want to use that, but on another panel (DA) if mod_ruid2 is used, it's not possible to have multiple php version selections, that will only work when using php-fpm instead of mod_ruid2. So I'm a bit confused. Is it possible on Cpanel to have multiple php versions and still use mod_ruid2 on all? And if multiple php versions are installed, can the user choose which version to use? Which by the way makes it easy to see if their scripts are compatible with newer versions. :)
    0
  • cPanelMichael
    but what happens with those, can the users select which php version they want to use?

    Yes, cPanel users can select different PHP versions for each virtual host using the MultiPHP Manager option available in cPanel: MultiPHP Manager for cPanel - Version 68 Documentation - cPanel Documentation
    And what about mod_ruid2? I want to use that, but on another panel (DA) if mod_ruid2 is used, it's not possible to have multiple php version selections, that will only work when using php-fpm instead of mod_ruid2.

    It's only possible to use DSO as the PHP handler for a single PHP version, and we recommend only using Mod_Ruid2 with the DSO PHP handler. Thus, you could still offer multiple PHP versions, but only one with DSO/Mod_Ruid2. This document is helpful at explaining the different PHP handlers we offer: PHP Handlers - EasyApache 4 - cPanel Documentation Thank you.
    0
  • rhm.geerts
    Ah thank you, I've read that documentation but thought it was only possible to have 1 php version running when using Mod_ruid2. So I understand we can run multiple php versions, but only 1 with mod_ruid2, the others for example with php-fpm (which is disabled at this moment). I presume php-suexec is running automatically? Because the newer v68 Cpanel does not have a "configure php and suexec" like the old 56 version has. I also discovered something odd. When php-fpm is not running, in the multiphp manager it is set to "on" but you can't switch it to "off" below the php version. If it's switch to "on" using the System PHP-FPM Status switch, then the php-fpm setting is set to "off". I attached a screenshot so you can see what I mean. Question number 3 is about the transfer tool itself. It says: The source server is not running the same major version as the target server. cPanel highly recommends that the source server runs the same major version for at least 24 hours to ensure any data conversions have completed.
    That's a problem. The old version is 56.0.52 and the new version is 68.0.19. The old cannot be updated because it's the last available version on Centos 5 where that server is running on. (Yeah I know, I warned the owner about that already a couple of years ago he had to take care of moving his stuff but he wouldn't listen). Can I just proceed?
    0
  • cPanelMichael
    I presume php-suexec is running automatically? Because the newer v68 Cpanel does not have a "configure php and suexec" like the old 56 version has.

    The suexec module is installed separately in EasyApache 4 via "WHM >> Software >> EasyApache 4". The CGI section on the following document explains how it changes the PHP script behavior: PHP Handlers - EasyApache 4 - cPanel Documentation
    I also discovered something odd. When php-fpm is not running, in the multiphp manager it is set to "on" but you can't switch it to "off" below the php version. If it's switch to "on" using the System PHP-FPM Status switch, then the php-fpm setting is set to "off". I attached a screenshot so you can see what I mean.

    That's by design. The option at the top of your image allows you to enable it for all accounts, while the option at the bottom of your image allows you to enable it on a per-domain basis (after selecting the domain names in the interface).
    Question number 3 is about the transfer tool itself. It says: That's a problem. The old version is 56.0.52 and the new version is 68.0.19. The old cannot be updated because it's the last available version on Centos 5 where that server is running on. (Yeah I know, I warned the owner about that already a couple of years ago he had to take care of moving his stuff but he wouldn't listen). Can I just proceed?

    Yes, in this case, you should proceed. Any errors will be logged during the transfer process and you can review all of the logs post-migration at "WHM >> Review Transfers and Restores". Thank you.
    0
  • rhm.geerts
    Great, thank you. I love the new Cpanel version and Easyapache 4. :)
    0
  • rhm.geerts
    I'm very sorry to bump this thread, but I wanted to be very sure about something. We had to prospone the migration until now, we use another server. I'm not native English so I don't quite understand the mixing possibility's from the manual you referred to. It's only possible to use DSO as the PHP handler for a single PHP version, and we recommend only using Mod_Ruid2 with the DSO PHP handler. Thus, you could still offer multiple PHP versions, but only one with DSO/Mod_Ruid2.
    I now installed these 2: PHP 5.6 with DSO and Mod_ruid2 (this is the system default for now) PHP 7.2 with cgi and php-fpm. Now the system says: You cannot convert all accounts to PHP-FPM. You do not have the PHP-FPM package for your system"s default PHP version installed.
    Which is understandable. But on top it says: PHP-FPM is available for accounts using PHP 7.2. To use PHP-FPM on accounts using PHP 5.6, you must install PHP-FPM for those PHP versions. To do so, perform the following steps below: 1. Click Install to open EasyApache 4 in a new window 2. Install the following packages: ea-php56-php-fpm
    If I would do that, would I loose the mod_ruid2 on php 5.6? Since you stated that mod_ruid2 is only possible on a single php version. Or would the users get the choice between php 5.6 with mod_ruid or php 5.6 with php-fpm (for the 5.6 version)? That's not 100% clear to me.
    0
  • cPanelMichael
    Hello, PHP-FPM is enabled on a per-domain basis. Thus, you could leave DSO as the PHP handler for PHP 5.6 with Mod_Ruid2 enabled and then enable PHP-FPM for any domain names that you prefer to use it on after installing the ea-php56-php-fpm RPM. Installing the ea-php56-php-fpm RPM won't uninstall Ruid2 or the DSO handler. Thank you.
    0
  • rhm.geerts
    Great, clear to me now, thanks for the quick answer!
    0
  • rhm.geerts
    Sorry, never mind, found it. :)
    0

Please sign in to leave a comment.