The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Migrating cPanel Settings to New Server?

Discussion in 'General Discussion' started by jazee, Aug 3, 2016.

  1. jazee

    jazee Member

    Joined:
    Jan 12, 2015
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm migrating to a new server with same OS but old server is WHM 56 and new server is latest WHM 58.

    I already ran into issue with missing PHP modules and differences in php.ini settings causing issues with applications that I am having to go through and determine what is missing or needs to be changed.

    The account transfer seems to work pretty good. However I'm wondering if there is a safe procedure to transfer the WHM/Apache/PHP and other settings that might save me some troubleshooting time. I know there is a "System Backup" option in the Backup config. However one thing I like about the migration is it gives me a change to "start fresh" and not bring over any unnecessary/garbage/temp files. Would use the Cpanel System Backup Restore be one option or not recommended in this case? Would I need to upgrade the old server to WHM 58 to insure compatibility? (I'm also running CSF-LFD firewall but know how to export/import config) Is there a mechanism (System Backup Restore?) that would bring add-on modules over automatically too? Or is it better/safer to just stick with the "clean" install and do everything manually, step by step?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You could utilize "WHM >> Transfer Tool" to migrate service configurations, as documented at:

    Transfer Tool - Documentation - cPanel Documentation

    Also, you may find this document helpful:

    The cpconftool Script - Documentation - cPanel Documentation

    You should not face compatibility issues when transferring accounts from a server with cPanel 56 to a server with cPanel 58. As far as Apache/PHP, you can create a build profile as documented at:

    EasyApache 4 - Create a profile - EasyApache 4 - cPanel Documentation

    Thank you.
     
  3. jazee

    jazee Member

    Joined:
    Jan 12, 2015
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've been using EasyApache 3 for config changes. So I can switch to EasyApache 4? I've always wondered why both options are provided?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The following blog post is a helpful introduction to EasyApache 4:

    5 Reasons You Want to be Using EasyApache 4 | cPanel Blog

    Let us know if you have any questions.

    Thanks!
     
  5. jazee

    jazee Member

    Joined:
    Jan 12, 2015
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    If there ends up being a problem with the conversion, is there an easy way to revert back to the previous EasyApache 3 config?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. jazee

    jazee Member

    Joined:
    Jan 12, 2015
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    So I could find information about transferring EasyApache profiles between servers but it was written for EasyApache 3. The custom folder path is different in EasyApache 4. I found the EA4 custom folder. Is the process the same as documented in EA3 transfer or has your documentation not caught up with your production releases quite yet?

    The migration from EA3 to EA4 created a profile: ea3_state_at_migration-1470339386.json in the EA4 custom profile folder. This doesn't have the yaml extension though. So where it the equivalent instructions to this document (below) but for EA4? Is there not a built-in profile export/import function? Seems logical to have one.

    How to Distribute EasyApache Files Over Multiple Servers - EasyApache - cPanel Documentation
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  9. jazee

    jazee Member

    Joined:
    Jan 12, 2015
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    So I copied the EA4 custom profile JSON file that was created when I migrated the old server from EA3 to EA4 just recently.

    The profile showed up in the profiles list (at the bottom) on my new server in EA4. I attempted to provision it and got a bunch of update errors and it would not allow me to provision it. Both servers were using the Default Cpanel builds using EA3. Both are updated to the latest WHM 58. So I'm a bit surprised there were errors? It ends up saying there are no packages to install or update. Is this essentially saying for some reason the apache packages on the new server are all the same or newer than the old server? But aren't there other config settings that must be different considering I used EasyApache 3 on the old server to make some minor changes to the default profile before migrating to EA4?

    Update Error: Error: Package: ea-apache24-mod_authn_dbd-2.4.23-2.2.1.cpanel.x86_64 (EA4) Requires: ea-apache24-mod_dbd = 2.4.23-2.2.1.cpanel Removing: ea-apache24-mod_dbd-2.4.23-2.2.1.cpanel.x86_64 (@EA4) ea-apache24-mod_dbd = 2.4.23-2.2.1.cpanel Available: ea-apache24-mod_dbd-2.4.16-4.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.16-4.1 Available: ea-apache24-mod_dbd-2.4.16-4.2.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.16-4.2 Available: ea-apache24-mod_dbd-2.4.16-4.3.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.16-4.3 Available: ea-apache24-mod_dbd-2.4.16-5.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.16-5.1 Available: ea-apache24-mod_dbd-2.4.16-6.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.16-6.1 Available: ea-apache24-mod_dbd-2.4.16-6.2.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.16-6.2 Available: ea-apache24-mod_dbd-2.4.16-8.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.16-8.1 Available: ea-apache24-mod_dbd-2.4.16-9.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.16-9.1 Available: ea-apache24-mod_dbd-2.4.17-1.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.17-1.1 Available: ea-apache24-mod_dbd-2.4.17-2.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.17-2.1 Available: ea-apache24-mod_dbd-2.4.17-3.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.17-3.1 Available: ea-apache24-mod_dbd-2.4.17-3.2.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.17-3.2 Available: ea-apache24-mod_dbd-2.4.17-3.3.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.17-3.3 Available: ea-apache24-mod_dbd-2.4.18-1.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.18-1.1 Available: ea-apache24-mod_dbd-2.4.18-2.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.18-2.1 Available: ea-apache24-mod_dbd-2.4.18-3.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.18-3.1 Available: ea-apache24-mod_dbd-2.4.18-4.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.18-4.1 Available: ea-apache24-mod_dbd-2.4.18-5.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.18-5.1 Available: ea-apache24-mod_dbd-2.4.18-5.2.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.18-5.2 Available: ea-apache24-mod_dbd-2.4.18-6.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.18-6.1 Available: ea-apache24-mod_dbd-2.4.18-7.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.18-7.1 Available: ea-apache24-mod_dbd-2.4.20-1.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.20-1.1 Available: ea-apache24-mod_dbd-2.4.20-2.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.20-2.1 Available: ea-apache24-mod_dbd-2.4.20-3.1.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.20-3.1 Available: ea-apache24-mod_dbd-2.4.20-4.4.4.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.20-4.4.4 Available: ea-apache24-mod_dbd-2.4.20-4.5.1.cpanel.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.20-4.5.1.cpanel Available: ea-apache24-mod_dbd-2.4.20-6.6.1.cpanel.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.20-6.6.1.cpanel Available: ea-apache24-mod_dbd-2.4.23-1.1.1.cpanel.x86_64 (EA4) ea-apache24-mod_dbd = 2.4.23-1.1.1.cpanel
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Try using the /usr/local/bin/ea_current_to_profile script to create the EasyApache 4 profile on the source server, and then copy this from from "/etc/cpanel/ea4/profiles/custom/" to the same location on the destination server. You should then see the profile in "WHM >> Software >> EasyApache 4 on the destination server.

    This script is documented at:

    EasyApache 4 - ea-config-tools - EasyApache 4 - cPanel Documentation

    Thank you.
     
Loading...

Share This Page