CageFS command not working for user

I have flvtool2 installed on the server. Path to binary file location was added in file /etc/cagefs/conf.d/vshare.cfg

The binary program works properly when running as root, but it fail when switching to a user that use CageFS.

The problem is fixed by editing file /etc/cagefs/cagefs.mp

Add following lines

Now remount cagefs with

See cagefs

WHM EasyApache 4 PHP missing

CloudLinux PHP versions missing in PHP Selector

On a Cpanel server running CloudLinux, PHP Selector did not show all PHP versions.

cloudlinux php selector

I reinstalled EasyApache profile “CloudLinux + All PHP Options + OpCache + mod_lsapi”.

WHM EasyApache 4  PHP missing

Even after installing EasyApache profile with all PHP versions, PHP 7.2 and PHP 7.4 was missing on this server.

To fix, the problem, i run

CloudLinux PHP Selector on Cpanel Server

CloudLinux come with PHP Selector, this allow you to select differnt PHP versions. When you enable PHP selector, you should do the following.

Related Posts

Enable CloudLinux PHP lsapi
CloudLinux

KernelCare

KernelCare Unknown Kernel

On Cpanel server with KernelCare installed, i keep getting email

KernelCare

This is because the kernel is not yet supported by kernalcare. Since this kernal is provided by CloudLinux, you don’t have to worry. CloudLinux support said they do add support for KernelCare after 3 to 4 days of releasing new kernel.

To disable this warning, edit file

Add

You can find more KernelCare options at

https://docs.kernelcare.com/config_options/

You can always check if KernelCare supports your current kernel here:

http://patches.kernelcare.com/

KernelCare update kernel using cronjob in /etc/cron.d/kcare-cron

Related Posts

Install KernelCare
cloudlinux

Uninstall CloudLinux imunify360

Recently all CloudLinux installed imunify360 on all my Cpanel Servers. This is a paid product, so free version is not much useful as you need to scan manually. I use maldet on all my servers and happy with it, so i removed imunify360 from my servers.

To uninstall imunify360, run

Disable the repo with

cloudlinux

Convert CentOS to CloudLinux

cloudlinux

CloudLinux is popular linux destribution used by shared hosting providers. Some of the advantage of cloudlinux is each user is running side its own light weight virtual environment (CageFS). This will protect other sites on the server if one of the site get hacked. Also CloudLinux allow you to set resource limit for each sites, this way no one site can take down entire web server.

You can find more details on cloudlinux at official web site

https://cloudlinux.com/all-products/product-overview/cloudlinuxos

If you are using CentOS on your server, you can easily convert it to CloudLInux.

To convert CentOS to CloudLinux, run

You can get activation key by getting 30 day trail or purchasing CloudLinux license.

If you have IP based license, run

Once install completed, reboot the server, this allow server to be booted with CloudLinux kernel.

See cloudlinux

cagefs mount points exists

On WHM > CloudLinux LVE Manager, i get following warning

Check cagefs mount points exists

There are missing mount points: [‘/usr/local/cpanel/whostmgr/docroot/cgi/softaculous’]

This error is due to softaculous was removed from server, but was not removed from cagefs mount points file.

To fix this error, edit file

Remove the line

CloudLinux lasapi php

Enable CloudLinux PHP lsapi

CloudLinux provides high performance PHP module lsapi. It is a replacement for suphp available on cpanel servers. lsapi module is a based on LiteSpeed Technologies API for PHP.

To enable lsapi in CloudLinux Cpanel Server, go to

Provision profile

CloudLinux lasapi php

Click “Provision” and wait until the software is updated.

Now you need to set lsapi as default PHP handler. To do this, go to

WHM Multi PHP Manager

Click on “PHP Handlers”.

On Next page, you can set handler for each PHP versions.

You can set PHP handler to lsapi gloabally using following command

Once you run it, all PHP version handlers will get chanegd to lsapi.

If you check PHP info, you will see Server API listed as LiteSpeed.

LiteSpeed Server API

selectorctl

selectorctl list all installed PHP (alt-php) versions in CloudLinux Server.

CloudLinux

Maybe run: yum groups mark install

When installing CloudLinux alt-php group, i get error.

This error is fixed by running

See yum