Beta: mod_lsapi and criu-lve updated

129 views
Skip to first unread message

Mykola Naugolnyi

unread,
Mar 1, 2017, 8:57:35 AM3/1/17
to cloudlinux-beta

The new updated mod_lsapi version 1.1-4 and criu-lve version 2.7-9 for CloudLinux 7 are available for download from our updates-testing repository.

mod_lsapi 1.1-4

Changelog:

  • MODLS-366: fixed improper scopes for some config options of mod_lsapi;
  • MODLS-362: disabled iptables checking CRUI; 
  • MODLS-347: removed LSCAPI_CRIU_SYNC_FD from the output of lsphp (phpinfo) as it is service info;
  • MODLS-364: fixed an issue when mod_lsapi with CRUI did not create CRUI images in directory which was set by lsapi_criu_imgs_dir_path option in lsapi.conf;
  • MODLS-367: detecting when CRIU is stopped and lsapi_criu is On and writing a message to the Apache log: Start CRIU. Service is stopped.
  • MODLS-370: added possibility to CRIU to create images for different virtual hosts under one user;
  • MODLS-378: sulsphp_log file has the same permissions as all Apache log files;
  • MODLS-376: fixed installation of lsphp for Plesk, when --setup command executed;
  • MODLS-359: added the list of handlers /etc/container/php.handler for supporting all available Alt-PHP packages.

criu-lve 2.7-9

Changelog:

  • MODLS-362: disabled iptables checking CRUI.

The new features:

  1. Аdded possibility to CRIU to create images for different virtual hosts under the same user. With these changes, the function of the mod_lsapi_reset_me flag was modified. From now on, if a user needs to clean CRIU images for lsphp, he should create a file: ~/mod_lsapi_reset_me_[vhost_name]. Where [vhost_name] is a ServerName from the VirtualHost block in the configuration file. On the next restart of lsphp, the images will be cleaned.

Example:

cd; touch mod_lsapi_reset_me_criu.test.com

where vhost.conf contains:

 

ServerName criu.test.com

...


This mode is enabled by default and creates a separate lsphp process for each virtual host.

 

2. There is lsapi_per_user (default off) option in mod_lsapi that creates only one lsphp process for a user, regardless of the number of his virtual hosts. We don't recommend to use this option with CRIU for now, but if you use it, make sure that your virtual hosts (under the same user) have the same environment configurations. If they are not the same, this may cause undesirable lsphp process operation.

Also, mod_lsapi_reset_me_[vhost_name] flag will not work for a user when

lsapi_per_user option is On.

Note that CRIU can not 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, ea-php56 or ea-php70

  4. DirectAdmin + alt-php56 or alt-php70

Required Alt-PHP or ea-php versions:

[alt-php56-5.6.30-2+]

[alt-php70-7.0.15-2+]

[ea-php56-php-5.6.30-1.cloudlinux.2+]

[ea-php70-php-7.0.15-1.cloudlinux.2+]

To update Alt-PHP with freezing support (non cPanel and DirectAdmin):

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

To install Alt-PHP with freezing support:

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

To update 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 install ea-apache24-mod_lsapi liblsapi liblsapi-devel --enablerepo=cloudlinux-updates-testing --enablerepo=cl-ea4-testing
$ service httpd restart

Directadmin:

$ yum update liblsapi liblsapi-devel --enablerepo=cloudlinux-updates-testing
$ cd /usr/local/directadmin/custombuild
$ ./build set cloudlinux_beta yes
$ ./build update
$ ./build mod_lsapi
$ service httpd restart
$ systemctl restart criu

After installing mod_lsapi, read http://docs.cloudlinux.com/index.html?mod_lsapi_installation.html and enable mod_lsapi on your server.

CRIU activation:

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 the following strings:

lsapi_criu On

lsapi_criu_socket_path /var/run/criu/criu_service.socket

lsapi_backend_semtimedwait On

lsapi_backend_initial_start 30

lsapi_criu_use_shm Off

And restart Apache.


--


Nikolay Naugolnyi  |  Technical Writer

0961853022  |  Skype: Mykola Naugolnyi


CloudLinux.com  |  KernelCare.com |  Imunify360 

Free 30-day Trials 
Get 24/7 free, exceptionally good support at helpdesk.cloudlinux.com
Follow twitter.com/CloudLinuxOS for technical updates

Reply all
Reply to author
Forward
0 new messages