It appears you also opened ticket 1346454 about this same question. Whenever an already existing ticket has been opened, please let us know the ticket number on the forum whenever possible.
Basically, you appear to want to clone the existing options for a cPanel machine such as PHP and Apache and Tweak Settings to a new cPanel server. We do have a feature request at
Filed [Case 42206] Clone Server Configuration for that type of functionality to be implemented into the product later on, which you might want to post to for your input.
To try to clone as much of the existing configuration as possible to the new machine, you could simply copy these folders or files on your old machine to the new one after making a backup of the existing files and folders prior to copying them:
/var/cpanel/easy/apache/custom_opt_mods/
/var/cpanel/easy/apache/prefs.yaml
/var/cpanel/easy/apache/profile/
/var/cpanel/easy/apache/rawenv/
/var/cpanel/easy/apache/rawopts/
/var/cpanel/easy/apache/state.yaml
/var/cpanel/cpanel.config
/var/cpanel/features/
/var/cpanel/zonetemplates/
/etc/exim.conf.local
/etc/exim.conf.localopts
Again, you would want to make a copy of these files and folders on the new machine prior to copying them from the old machine to the new one:
Code:
mkdir /root/backup
cp -R /var/cpanel/easy/apache/custom_opt_mods/ /root/backup
cp -R /var/cpanel/easy/apache/prefs.yaml /root/backup
cp -R /var/cpanel/easy/apache/profile/ /root/backup
cp -R /var/cpanel/easy/apache/rawenv/ /root/backup
cp -R /var/cpanel/easy/apache/rawopts/ /root/backup
cp -R /var/cpanel/easy/apache/state.yaml /root/backup
cp -R /var/cpanel/cpanel.config /root/backup
cp -R /var/cpanel/templates/apache2/ /root/backup
cp -R /var/cpanel/features/ /root/backup
cp -R /var/cpanel/zonetemplates/ /root/backup
cp -R /etc/exim.conf.local /root/backup
cp -R /etc/exim.conf.localopts
After running the above copies, then scp or rsync the files from the old machine to the new one. At that point, you'd want to re-run EasyApache, restart exim, and restart cPanel on the machine.