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

  1. Restore the user's ~USERNAME/.cl.selector/ folder from the backup.
  2. Find the user's CageFS prefix:
    cagefsctl --getprefix USERNAME
  3. Remove the old generated PHP Selector files in the user's CageFS etc folder (/var/cagefs/PREFIX/USERNAME/etc/cl.selector and cl.php.d). Check the paths carefully first.
  4. Recreate the configuration:
    cagefsctl --force-update-etc USERNAME

Then check the site in cPanel under Software › Select PHP Version.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

Server management

on-demand administration, hardening, migrations and monitoring.

Was this answer helpful?

Still stuck? Open a ticket