SOLVED Clone WHM/cPanel Config Settings

RFick

Registered
Apr 2, 2020
4
0
1
Surrey B.C., Canada
cPanel Access Level
Root Administrator
Hello,

I am unable to find any recent explanations for this so I thought I would start a newer thread. I apologize if it's a duplicate of an older thread.

I am looking to setup a second cPanel server & I am wanting to make sure that most of all the configuration & settings that are on the current server get duplicated on the newer one. (Packages, PHP versions, Site Software, etc. Minus the server & site IP's and the accounts themselves as I will move a few of the sites over later) I originally started doing this section by section but I am finding there is more & more spots that I missed. What is the best way of doing this?

I came across the Transfer Tool & the Configuration Cluster but it didn't seem to do what I wanted. I'm pretty new to all of this so I may have just been using it wrong.

As a followup to this. I'd like them to sync with each other & there to be, if possible, a master server. If settings are changed on cPanel1 then they should roll over to cPanel2. Perhaps settings could be locked on cPanel2 so they cannot be changed some how but that isn't necessary so long as I know that I should always make the changes I need on cPanel1 first & then sync them to cPanel2.

Any information or links to how I can accomplish this task would be greatly appreciated.

Thank You.

Thank You.
 

cPJeremy

Technical Analyst
Staff member
Feb 13, 2019
58
3
83
Houston TX
cPanel Access Level
Root Administrator
Hello @RFick!

Firstly, in regards to 'cloning' or transferring settings from one cPanel server to another, there is only one specific function we provide that does this. This is known as the "cpconftool." The cpconftool is a built-in function to the Transfer Tool, but it is possible to use the cpconftool on it own via a command-line script. The cpconftool will backup and restore the following modules:
  • Apache
  • AutoSSL
  • Backups
  • cPanel Themes
  • cPHulk
  • Exim
  • GreyListing
  • ModSecurity
  • MySQL
  • WHM(whmconf)
What each module entails is mentioned in the documentation here: cPanel Documentation | The cpconftool script

We also have a great article that explains how to use this script, here: How to use the cpconftool script to backup and restore server configurations

Also, sadly there is not a specific way to "cluster" the server's settings. The configuration cluster options in WHM only really dictate the cPanel versions running on the server. (The Update Preferences) This can be mentioned in the documentation for this function, here: cPanel Documentation | Configuration Cluster - Specifically in regards to what you were trying to complete with having a master server and settings being locked, there is currently not a built-in function that can achieve this.

I hope this information helps!