How to restore PHP Selector options after restore or migration

For restoring PHP Selector options and alternate PHP version from the backup (example user cltest3) do the following:
1. Restore ~cltest3/.cl.selector/ directory.
2. Remove PHP Selector current files from CageFS directory. First, take CageFS prefix:

$ /usr/sbin/cagefsctl --getprefix cltest3

Then remove cl.selector and cl.php.d in user's etc directory:

$ rm -rf /var/cagefs/04/cltest3/etc/cl.selector
$ rm -rf /var/cagefs/04/cltest3/etc/cl.php.d

3. Run the command to recreate configs:

$ /usr/sbin/cagefsctl --force-update-etc cltest3

Was this answer helpful?

 Print this Article

Also Read

How to setup the backup schedule?

Each server connected to CloudLinux Backup On-Premises has its own Web Console to manage backups....

How can I switch from cPanel/Plesk/Acronis backup to CloudLinux Backup?

To switch from cPanel/Plesk/Acronis backup you need to disable current backup system both on your...

PHP Selector and DirectAdmin

Our PHP Selector works with DirectAdmin only if PHP is running in suPHP or FastCGI mode. Here is...

How much space do I need to backup my servers?

The amount of required space is determined by the size of your servers and how often their...

Lightweight Virtual Environment

LVE Benefit Includes;Ensure Utmost Stability; By limiting resources, you ensure that a tenant...