CloudLinux - CloudLinux Blog - Beta: mod_lsapi updated
RSS

Beta: mod_lsapi updated

Beta: mod_lsapi updated

The new updated mod_lsapi version 1.1-2 for CloudLinux 7 is available for download from our updates-testing repository.

mod_lsapi 1.1-2

Changelog:

  • MODLS-308: added lsapi protocol logging capabilities;
  • MODLS-269: lsphp works with PHP versions selected with MultiPHP on EA4 when SuPHP enabled;
  • MODLS-338: fixed incorrect work of lsphpchecker - uses :no value" instead "Off";
  • MODLS-332: added some way to trigger images cleanup;
  • MODLS-331: changed CRIU images perms to 0600, as existing 0644 were not be secure enough;
  • MODLS-330: hiding all debug and extra messages, activating them only with specific parameter.

Current mod_lsapi version has some optimizations in synchronization of lsphp dump creation and has ability to clean user’s images.

If a user needs to clean CRIU images for lsphp, he should create a file: ~/mod_lsapi_reset_me. On the next restart of lsphp, the images will be cleaned.

Note that CRIU can't correctly freeze lsphp with PrivateTmp enabled. For correct work, PrivateTmp should be false in httpd.service file. For example:

# cat httpd.service

[Unit]

Description=Apache web server managed by cPanel EasyApache

ConditionPathExists=!/etc/httpddisable

ConditionPathExists=!/etc/apachedisable

ConditionPathExists=!/etc/httpdisable

 

[Service]

Type=forking

ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose

PIDFile=/var/run/apache2/httpd.pid

PrivateTmp=false

 

[Install]

WantedBy=multi-user.target

How to install (cPanel EA3, EA4 and RPM based systems only)

Control panels and configuration that currently support mod_lsapi+CRIU:

  1. RPM based panels (Plesk or clean OS) + alt-php56 or alt-php70

  2. cPanel EasyApache 3 + alt-php56 or alt-php70

  3. cPanel EasyApache 4 + + alt-php56 or alt-php70 or ea-php56 or ea-php70

First of all update alt-php or ea-php for EasyApache 4 to the following:

[alt-php56-5.6.29-2+]

[alt-php70-7.0.14-2+]

[ea-php56-5.6.29-1.cloudlinux.2+]

[ea-php70-7.0.14-1.cloudlinux.3+]

For updating alt-php with freezing support:

yum groupupdate alt-php --enablerepo=cloudlinux-updates-testing

For install alt-php with freezing support:

yum groupinstall alt-php --enablerepo=cloudlinux-updates-testing

For updating ea-php (EasyApache 4) with freezing support:

yum-config-manager --enable cl-ea4-testing
yum update ea-php* --enablerepo=cloudlinux-updates-testing
yum-config-manager --disable cl-ea4-testing

For install ea-php(EasyApache 4) with freezing support:

yum-config-manager --enable cl-ea4-testing

Install via web-interface or yum install ea-php* --enablerepo=cloudlinux-updates-testing

yum-config-manager --disable cl-ea4-testing

mod_lsapi installation and update:

cPanel EasyApache 3 & RPM Based:

$ yum update liblsapi liblsapi-devel --enablerepo=cloudlinux-updates-testing
$ yum update mod_lsapi --enablerepo=cloudlinux-updates-testing
$ service httpd restart
$ systemctl restart criu

Installation for EasyApache 4:

To update:

$ yum update ea-apache24-mod_lsapi liblsapi liblsapi-devel --enablerepo=cloudlinux-updates-testing --enablerepo=cl-ea4-testing
$ service httpd restart
$ systemctl restart criu

To install:

yum-config-manager --enable cl-ea4-testing
yum update liblsapi liblsapi-devel --enablerepo=cloudlinux-updates-testing

read http://docs.cloudlinux.com/index.html?cpanel_easyapache_4.html

yum-config-manager --disable cl-ea4-testing
$ systemctl restart criu

CRIU activating:

systemctl enable criu
systemctl start criu

Add to /etc/apache2/conf.d/lsapi.conf or /usr/local/apache/conf/lsapi.conf or /etc/httpd/conf.d/lsapi.conf such strings:

lsapi_criu On
lsapi_criu_socket_path /var/run/criu/criu_service.socket
lsapi_backend_semtimedwait On
lsapi_backend_initial_start 15
lsapi_criu_use_shm Off

And restart apache.

 

LVE Manager’s new UI is now in beta!
Public beta for Imunify360 and Imunify Sensor is o...
 

By accepting you will be accessing a service provided by a third-party external to https://www.cloudlinux.com/