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 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

 CloudLinux Statistics showing API connection errors?

If you're facing such errors at CloudLinux Manager, here's the solution: First of all, run the...

 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...

 Fix Unable to set values ​​and packages in LVE

If the LVE Manager is already installed on your server as follows, just execute the following...

 Fix “Missing MySQL Extension” with PHP Selector

If you are using CloudLinux and PHP selector, sometimes you will get the following error after...

 Fixing PHP Selector or other CLN tools issues Easily

Make sure to verify the CageFS status: In order to enable CageFS for all the servers, you must...