If you plan a server migration and you want to ensure that all CloudLinux-related settings remain there, the following instructions should prove useful. Note that the majority of native backup/restoration tools from control panels do include those files; for the most part, those are applicable for manual migration or for servers without a control panel.
LVE Limits and Packages
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 you haven't made any changes to the CageFS configuration files, there's no need to backup them. They will get re-created on a new server during the first installation.
If you did customize CageFS configs, 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
To back up the PHP Selector settings, move the
/etc/cl.selector directory to a new server and run:
To restore the user's settings from PHP Selector, please refer to this guide.
Basically, custom PHP settings migration plan is next:
- Restore user home dirs
- Remove all CageFS\Selector directories with
rm -rf /var/cagefs/*/*/etc/cl.selector rm -rf /var/cagefs/*/*/etc/cl.php.d
- Regenerate them with
Please sign in to leave a comment.