How to migrate all CloudLinux settings to another srv?

To move LVE and packages limits, just move the /etc/container/ve.cfg file to a new server, and then run:

lvectl apply all

If any modifications were made to CageFS - move the /etc/cagefs/cagefs.mp file, and/or /etc/cagefs/conf.d directory to a new server and run:

cagefsctl --force-update && cagefsctl--remount-all

For PHP-Selector - move the /etc/cl.selector directory and run:

cagefsctl --setup-cl-selector

Basically, a custom PHP settings migration plan is next:

restore user home dirs and remove all cagefs\selector directories with

rm -rf /var/cagefs/*/*/etc/cl.selector
rm -rf /var/cagefs/*/*/etc/cl.php.d

regenerate them with

cagefsctl --force-update-etc

Done!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix lveinfo database error of CLN

Run the following command: service lvestats stoptar -zcvf /root/lveinfo_backup_$(date...

How to Install KernelCare on cPanel/WHM server

To install KernelCare, you need to log in with the root user on your cPanel server. Check for...

Switching all cPanel acc/s to "inherit" PHP version

You can change all cPanel users to inherit with this CLI command: for each in `cat...

How to fix issues like PHP selector not available

Some of our clients face the issues like "PHP selector not available" on cPanel accounts of their...

CloudLinux installed, but still showing CentOS

Some of our clients face the issue, that's why we're writing the tutorial to fix it. First of...