Creating multiple server with same config, but hostname.

excessnet

Well-Known Member
Aug 7, 2006
57
0
156
Quebec, Canada
cPanel Access Level
Root Administrator
Hello,

I tried to search, but I didn't find it. I'm we can do that easely.

Can I create a "template" server configuration and then, copy this configurations to other server (i.e.: Tweak, Preference, ...), so I only have to set hostname, install 3rd party stuff (like CSF) and run EasyApache (with saved profile) when I build a new server instant of going tab by tab... ?

Thanks!
 
Last edited:

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,980
156
368
SLC
cPanel Access Level
DataCenter Provider
Make a copy of /var/cpanel/cpanel.config & save it somewhere

upload it to your new server & run
/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
after you install it


for csf grab the latest copy & untar it replace the defualt csf.conf with your custom csf.conf. tar it backup & use that csf.tgz to use for future installs
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
Hum... it seem to copy only the "tweak" settings. Not "Ftp Server Configuration" (like, I put Anonymous to "no" and it's still "yes") and stuff like that! :(
You can also sync these configuration files manually from the source server. Sync'ing the following files should cause no issues

/etc/pure-ftpd.conf
/etc/my.cnf
/etc/exim.conf