Skip to content

CloudLinux ​

This page explains how MoorCP separates accounts and enforces package limits, both on CloudLinux servers (the cloudlinux driver) and on plain AlmaLinux/Rocky/RHEL servers (the generic driver). It is written for admins.

Isolation drivers ​

The agent picks a driver automatically at startup. If lvectl and cagefsctl exist, the agent uses cloudlinux. Otherwise it uses generic.

Itemgenericcloudlinux
Isolation levelStandardStrong
CPU, RAM, process, IO limitscgroup v2 through a systemd slice per accountLVE
Filesystem separation/home 0711, account home 750, /proc hidepidCageFS per account
Disk and inode quotasXFS quotaXFS quota
Per-account database limitsNoneMySQL Governor
PHPPHP-FPM per account (Remi, MoorCP)PHP-FPM, or PHP Selector (alt-php)
Node.js and PythonMoorCP runtimesCloudLinux selector (Passenger)
RubyMoorCP runtimesMoorCP runtimes with alt-ruby
Client terminal, SSH, cronbubblewrap jailThe account's CageFS and LVE
LicenseNot neededCloudLinux OS Shared license

Each server's driver is shown in the Servers list and on the Isolation levels card, so weaker isolation is always visible.

generic driver ​

The generic driver is used on servers without CloudLinux. Package limits map to:

Package limitEnforcement
CPUCPUQuota on the account slice
RAMMemoryHigh / MemoryMax
ProcessesTasksMax
IO (MB/s) and IOPSBandwidth and IOPS limits on the home filesystem
Disk and inodesXFS quota

It requires cgroup v2 and filesystem quotas on /home. Checks and hardening (/home 0711, hidepid) are in Settings › Isolation & limits. See Server settings › Isolation & limits.

INFO

The generic driver does not limit database usage per account. An account running heavy queries can still load MariaDB.

Converting to CloudLinux ​

AlmaLinux or Rocky Linux 9 servers can be converted to CloudLinux. The panel does not run the conversion itself, because it replaces the kernel and reboots the server. The guide is in Settings › Isolation & limits › Convert to CloudLinux.

  1. Get an activation key. Get a CloudLinux OS Shared key (a trial key works) from cln.cloudlinux.com. IP-based licenses do not need a key; use cldeploy -i.

  2. Take a snapshot. Take a hypervisor snapshot and turn on maintenance mode.

  3. Convert and reboot. Run as root on the server:

    bash
    sh cldeploy -k KEY
    bash
    reboot
  4. Install CageFS and LVE Manager. After the reboot, still as root:

    bash
    dnf install -y cagefs lvemanager && cagefsctl --init
  5. Finish in the panel:

    1. Open Settings › Agent & security and click Run verification. The agent switches to the cloudlinux driver and the CloudLinux tab appears.
    2. In the CloudLinux tab, click Install integration.
    3. Click Re-apply limits so the limits move from systemd slices to LVE.
    4. Turn off maintenance mode.

WARNING

Conversion is only supported on Enterprise Linux 9. Take a snapshot before you start, because a kernel failure can leave the server unable to boot.

CloudLinux tab ​

The CloudLinux tab in the server's details appears automatically as soon as the agent detects LVE or CageFS, or when the server's driver is cloudlinux.

Status ​

The top shows:

ItemContents
LicenseThe result of cldetect --check-license: Active or Not active.
LVEWhether a CloudLinux kernel with LVE is active.
CageFSThe number of accounts with CageFS and the CageFS mode.
Panel integrationInstalled or Not installed.

If setup is incomplete, the panel shows CloudLinux setup is not complete with the remaining steps, for example:

  • activate the CloudLinux license;
  • boot the CloudLinux kernel with LVE (reboot after cldeploy);
  • install CageFS;
  • install the panel integration;
  • verify the server so the panel records the cloudlinux driver.

Available buttons:

ButtonPurpose
Verify serverAligns the driver recorded in the panel with the driver the agent uses.
Re-apply limitsRewrites the package limits of all accounts to LVE.
Install integration / Update integrationInstalls or updates the panel integration for CloudLinux.

The panel integration lets CloudLinux recognize MoorCP: the list of accounts, packages, domains, PHP version per domain, and database users. This data is synced every 10 minutes and on every website change.

CloudLinux on this server ​

The CloudLinux on this server card shows the agent driver, the panel driver, the CloudLinux package version, and the Default LVE limits.

Accounts get their package limits on top of these defaults. A package limit of 0, which is the Unlimited option in the package form, is not sent to LVE, so the account uses the server's default LVE limit for it. Disk and inodes at 0 mean no XFS quota.

IO in the package form is entered in MB/s, the same as in CloudLinux LVE Manager.

Mapping package limits to LVE ​

Package limitLVE
CPU (100 = one core)SPEED
RAMPMEM
IO (MB/s)IO
IOPSIOPS
Processes (nproc)NPROC
Entry processesEP
Disk and inodesXFS quota

nproc rule

CloudLinux requires nproc to be greater than entry processes + 15. Packages that break this rule are refused with a clear message.

Accounts in LVE ​

The Accounts in LVE table shows each account's:

  • CageFS status;
  • whether its LVE is running or idle;
  • current EP, NPROC, and RAM usage;
  • Faults (mem/EP/proc): the fault count since the LVE was created;
  • the account's own LVE limits. A — means the server default.

Click Disable CageFS or Enable CageFS to change CageFS for one account.

DANGER

An account without CageFS can see the server's real filesystem, and its SSH session becomes a regular shell limited only by file permissions and LVE. Turn CageFS off only for diagnosis, then turn it back on.

CloudLinux Manager ​

The CloudLinux Manager card (admins only) opens the official LVE Manager inside the tab, with the same menus as in WHM: Dashboard, Current Usage, Users, Statistics, Options, and Packages.

  1. Click Open CloudLinux Manager.
  2. The panel opens a session with a one-time link. You do not need the root password.
  3. Click New tab ↗ to open it in its own browser tab.

The session is valid for 1 hour and every opening is recorded in the audit log.

Per-user limits in CloudLinux Manager

Package limits are rewritten when the package changes and on Re-apply limits. Per-user limits changed in CloudLinux Manager can be overwritten. Change limits through the package.

Statistics and limit faults ​

The panel reads LVE usage per account: CPU, RAM, processes, IO, IOPS, and entry processes, along with memory, process, and entry process faults. The data appears on the account's Usage page, in Top Resource Users on the dashboard, and in Resource usage.

CPU throttling is not recorded as a fault, because LVE does not provide a counter for it.

PHP Selector ​

PHP Selector lets every account pick its own alt-php version, extensions, and php.ini options. Every installed alt-php version is available to accounts, unless the package restricts the versions through the API. Installing and enabling it is done in the CloudLinux tab. See PHP versions › PHP Selector.

MySQL Governor ​

MySQL Governor limits MariaDB usage per account. Its card is in the CloudLinux tab. See Databases › MySQL Governor.

Node.js and Python ​

On CloudLinux servers, client Node.js and Python applications run through the CloudLinux selector with Passenger, inside the account's CageFS and LVE.

Installing runtimes ​

  1. In the CloudLinux tab, open the Node.js and Python card.
  2. Tick the Node.js and Python versions you want to install.
  3. Click Install selected runtimes, then confirm. Passenger and the chosen runtimes are installed, then Apache restarts.

The table shows each version with its installed status and whether it is offered to accounts. Click Hide or Offer to control which versions clients can choose.

Client access is controlled by the NodeJS and Python package features. Ruby on CloudLinux uses the MoorCP runtimes. See Node.js, Python, Ruby.

When you import accounts from cPanel to a CloudLinux server, Node.js and Python applications are registered again in the CloudLinux selector with the same settings. Applications the selector already knows from the copied home directory are restarted; others are created with the same root, which may stay inside public_html as on the source. Install the needed runtime versions before the import, otherwise the import report lists a manual step. See Importing from cPanel.

Terminal, SSH, and cron ​

With the cloudlinux driver, client shell access uses the account's CageFS and LVE:

PathBehavior
Client web terminalEnters the account's CageFS, with a time-limited session.
SSH, scp, SFTPEnters CageFS and LVE through CloudLinux PAM. Accounts without the SSH feature stay SFTP only.
CronJobs run in the account's CageFS and LVE.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.