How To Fix PHP selector does not work, no PHP handler versions displayed

Fix the issue where CloudLinux PHP Selector does not work and no PHP handler versions are displayed. Step-by-step troubleshooting guide

How To Fix PHP selector does not work, no PHP handler versions displayed

⚠️ Issue

🚫 CloudLinux PHP Selector does not work

  • Installed alt-php versions are not visible in PHP Selector.

  • No CloudLinux PHP handlers can be selected.

  • Even though all required alt-php packages are installed, the file:

/etc/cl.selector/selector.conf

is empty.


🖥️ Environment

  • CloudLinux OS

  • PHP Selector


✅ Solution

To fix this issue:

🔧 1. Recreate selector.conf

# rm -f /etc/cl.selector/selector.conf

🔧 2. Reinstall alt-php packages

# yum -y reinstall alt-php??-common alt-php?? 

(Replace ?? with the PHP version numbers, e.g., 73, 81, 82)

🔧 3. Update CageFS

# /usr/sbin/cagefsctl --force-update 

🐞 Cause

The problem is due to a corrupted alt-php installation.
As a result, the /etc/cl.selector/selector.conf file gets broken/empty, preventing PHP Selector from showing available PHP versions.

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0