Issue
How to restore the PHP Selector
Environemnt
CloudLinux OS 6(h)/7(h)/8
cPanel/Plesk/DirectAdmin/No panel
Solution
This is an additional guide for restoring user-specific PHP Selector configs. To export/import other CloudLinux components' configs, check this guide.
For restoring PHP Selector options and alternate PHP version from the backup, follow the steps below. In this example, the account name is cltest3.
- Restore the ~cltest3/.cl.selector/ directory. Note that cPanel's restoration tool restores that directory along with all the files. If you use it to restore the account, proceed to p.3.
- Remove PHP Selector current files from the CageFS directory. First, take CageFS prefix:
$ /usr/sbin/cagefsctl --getprefix cltest3
04
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
- Run the command to recreate configs:
$ /usr/sbin/cagefsctl --force-update-etc cltest3
Comments
0 comments
Please sign in to leave a comment.