How To Install alt-php Packages In Cloudlinux

Learn how to install alt-php packages in CloudLinux. Step-by-step guide to add multiple PHP versions, update CageFS, and enable them in cPanel

How To Install alt-php Packages In Cloudlinux

⚠️ Issue

How to install Alt-PHP packages in CloudLinux?
Sometimes, PHP versions are missing in PHP Selector because the required Alt-PHP packages are not installed.


🖥️ Environment

  • CloudLinux

  • PHP Selector


✅ Solution

To install all missing Alt-PHP packages, simply run:

# yum groupinstall alt-php
or
# dnf group install alt-php

This will download and install:

  • Multiple Alt-PHP versions (5.x → 8.x depending on OS support)

  • Required extensions and configuration files

  • Integration with PHP Selector

After installation, refresh CageFS to ensure everything is available to users:

# cagefsctl --force-update 

🐞 Cause

If Alt-PHP is missing, it means the Alt-PHP group packages were not installed during setup or got removed. Installing via yum groupinstall ensures that all available versions are properly registered with PHP Selector.

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