Thursday, May 31, 2012

installing cagefs incpanel server.

First you need to check your cloudlinux version. If the version is higher than lve0.8.54. Do the following steps.

yum install cagefs
/usr/sbin/cagefsctl --init
By default cagefs is disabled for all users


/usr/sbin/cagefsctl --enable-all

/usr/sbin/cagefsctl --list-enabled  -> list all the cagefs enabled users

FYI:  We need to enable normal shell for any users using SFTP. Jailshell will not connect sftp.

Sometimes your ffmpeg path will not recognize.Issues can be affected application like clip bucket, phpmotion,

While converting this will shows sh:ffmpeg path not found also while checking the server modules this will not recognize ffmpeg,flvtool,mp4box

Solution
cagefsctl --addrpm ffmpeg
cagefsctl --update
in latest version you may need to run the below command:

]# cagefsctl --force-update



OR
[/etc/cagefs/conf.d]# cat clipbucket.cfg
[clipbucket]
comment=ClipBucket
paths=/usr/local/bin/ffmpeg, /usr/bin/php, /usr/local/bin/flvtool2, /usr/local/bin/MP4Box




For updating cagefs to the latest version:

 Using the following command i have updated using following :
 # yum update lve-utils lve-stats cagefs
 

lve-utils-0.6-10.el5.cloudlinux to => lve-utils-1.0-34.el5.cloudlinux
lve-stats-0.8-2.el5.cloudlinux to => lve-stats-0.9-6.el
cagefs-3.5-2.el5.cloudlinux to => cagefs-3.6-4.el5.cloudlinux


1 comment:

  1. command for installing cagefs on a fresh cPanel server one go(NOt for updating cagefs or if cagefs is already installed)

    yum -y install cagefs && cagefsctl --init && cat /etc/trueuserdomains | awk -F: '{print $2}' | xargs -I{} cagefsctl --enable {}

    ReplyDelete