Categories: CloudLinux

CageFS and PHP Selector (Installation) in CloudLinux

CageFS and PHP Selector are two major components of Cloud Linux.

The installation of PHP Selector

PHP Selector is a CloudLinux component that sits on top of CageFS. It allows each user to select PHP version & module based on their needs. PHP Selector requires account to have CageFS enabled to work.

1) The installation of PHP Selector presumes that you already have CageFS & LVE Manager installed.

2) Installation of different versions of PHP & modules:

$ yum groupinstall alt-php

3) Update CageFS & LVE Manager with support for PHP Alternatives

$ yum update cagefs lvemanager

Command Line Tools

/usr/bin/cl-selector – tool is used to select version of PHP interpreter
inside CageFS

-l | –list            : List available alternatives for item specified

-L | –list-extensions : List available extensions for a user

-e | –enable          : Enable an extension for a user

-i | –interpreter     : Specify an interpreter for an extension (e.g. php)

-d | –disable         : Disable an extension for a user

-a | –all             : Show available extensions for a user

-c | –current         : Print alternative currently in use for a user

-u | –user            : Specify a user

-v | –version         : Specify a version for an alternative

-s | –select          : Select an alternative to be used

-p | –prove           : Print if CageFS enabled for a given user

-r | –reload          : Reload specified processes for a given user

-b | –backup          : backup linkage configuration for a user

-q | –quiet           : Suppress error messages

-h | –help            : Print this message

========================

The installation of CageFS Selector

CageFS is a virtualized file system and a set of tools to contain each user in its own ‘cage’. Each customer will have its own fully functional CageFS, with all the system files, tools, etc…

To install CageFS:

$ yum install cagefs
$ /usr/sbin/cagefsctl –init

That last command will create skeleton directory that might be around 7GB in
size.

If your /usr/share not have enough disk space, then follow the steps below to place cagefs skeleton in different location.

$ mkdir /home/cagefs-skeleton

$ ln -s /home/cagefs-skeleton /usr/share/cagefs-skeleton

CageFS will automatically detect and configure all necessary files for:

•       cPanel
•       Plesk
•       DirectAdmin
•       ISPmanager
•       Interworx
•       MySQL
•       PostgreSQL
•       LiteSpeed

 

 

 


Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.

Recent Posts

Step-by-Step Guide to Implementing a CDN for WordPress

Picture this: Your WordPress site is like that one friend who's always fashionably late to everything. You know, the one…

5 days ago

The Truth Behind AI Detectors: Trust or Distrust?

In a world where artificial intelligence is rapidly reshaping our digital landscape, AI detectors have emerged as both guardians and…

2 weeks ago

What are the advantages of using VPS for e-learning?

In today's digital age, e-learning has become more than just a convenience – it's a necessity. As virtual classrooms and…

3 weeks ago

Updated cPanel License Price in Jan 2025: A Comprehensive Guide

Are you ready for another cPanel price adjustment? As we have approached January 2025, cPanel has rolled out significant changes…

2 months ago

Finding Your Fit: Website Builder or WordPress for Your Site?

In this growing digital world, having a website is not enough—it’s a crucial and much-needed option. But here's the challenge…

2 months ago