Updated: 28 September 2026 · Applies to: CloudLinux OS with cPanel & WHM
On CloudLinux servers, each user's PHP Selector choices (PHP version, extensions and options) are stored in their account. After restoring or migrating an account, apply them again as follows (as root, replace USERNAME).
- Restore the user's
~USERNAME/.cl.selector/folder from the backup. - Find the user's CageFS prefix:
cagefsctl --getprefix USERNAME
- Remove the old generated PHP Selector files in the user's CageFS
etcfolder (/var/cagefs/PREFIX/USERNAME/etc/cl.selectorandcl.php.d). Check the paths carefully first. - Recreate the configuration:
cagefsctl --force-update-etc USERNAME
Then check the site in cPanel under Software › Select PHP Version.