A Comprehensive Guide to Mod_lsapi Installation on CloudLinux

thumb_up 0  ·  sell Mod_lsapi installation CloudLinux, Installing Mod_lsapi on CloudLinux, Step-by-step guide Mod_lsapi CloudLinux

Mod_lsapi is a high performance Apache module that is based on the technology behind the LiteSpeed web server. It’s a drop-in replacement for suPHP, but it can also serve Ruby and Python scripts. It works exactly the same as suPHP, with the big difference that it is faster and uses less system resources to serve PHP files.

lsphp on the other hand, is the integration between PHP and LSAPI (LiteSpeed Server Application Programming Interface), originally designed for LiteSpeed Webserver, now it’s available for Apache 2.2 and 2.4, which means it’s 100% compatible with cPanel servers.

Mod_lsapi requirements

In order to install mod_lsapi on CloudLinux + cPanel you will need to have this pre-requisites enabled.

  • SuExecUserGroup should be present for each virtual host.
  • CageFS and PHP Selector are needed, if not present, this will be installed as dependencies.

How can I Install Mod_lsapi ?

On CentOS and RHEL systems you can install mod_lsapi using the following commands:

yum install liblsapi liblsapi-devel
yum install mod_lsapi
 

If CageFS is not started you will need to run the init argument and enable-all

cagefsctl --init
cagefsctl --enable-all

Run the setup script to setup mod_lsapi configurations for apache web server

/usr/bin/switch_mod_lsapi --setup

You can also enable mod_lsapi for a single domain

/usr/bin/switch_mod_lsapi --enable-domain [domain]

Then run you can enable mod_lsapi globally, for all the cPanel users in your server

/usr/bin/switch_mod_lsapi --enable-global

Restart Apache to apply changes

service httpd restart

Installing on cPanel servers with EasyApache 4

If you have EasyApache 4, you can use this installation / convert instructions from CloudLinux announcement: Beta: EasyApache 4 released for CloudLinux

Once you have EA4 on CloudLinux, you can install mod_lsapi using this commands

 
yum install liblsapi liblsapi-devel
yum install ea-apache24-mod_lsapi

You can also install mod_lsapi on EA4 from its web interface from the list of available modules.

How can I uninstall mod_lsapi from Apache?

/usr/bin/switch_mod_lsapi --uninstall


The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.

Was this answer helpful?

Related Articles

description

Troubleshooting CloudLinux Installation Errors Caused by Third-Party Kernel Module RPM

I was trying to install CloudLinux on an existing cPanel server, and got this error: [root@server.nixcp.com:~]sh cldeploy -k mykey…

arrow_forward
description

Demystifying CloudLinux: Unveiling Its Key Concepts

When you visit from web hosting provider website you will probably notice that almost everyone of them is promoting and talking about…

arrow_forward
description

A Step-by-Step Guide to Setting up MySQL Governor on cPanel

MySQL service overloads was something quite common on shared web hosting enviroments before Cloudlinux appear in the web hosting market.…

arrow_forward
description

Installing OptimumCache on CloudLinux OS: A Detailed Walkthrough

On almost all shared hosting providers, there is one thing in common that all share. They have multiple installations of WordPress, Joomla,…

arrow_forward
description

A Step-by-Step Guide to PHP Selector Installation on CloudLinux OS

PHP Selector is one of the coolest features of CloudLinux. It allows you to choose PHP versions for each website on your cPanel server.…

arrow_forward
arrow_back « Back