Issue
We are planning a server migration and want to ensure that all CloudLinux related settings remain the same.
Environment
- CloudLinux OS 6(h)/7(h)/8
- cPanel/Plesk/DirectAdmin/No panel
Solution
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
CageFS
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
PHP Selector
To back up the PHP Selector settings, move the /etc/cl.selector
directory to a new server and run:
cagefsctl --setup-cl-selector
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
cagefsctl --force-update-etc
Comments
0 comments
Please sign in to leave a comment.