Installation guide for CloudLinux

CloudLinux is an operating system for shared hosting to improve the stability, security and density. LVE, CageFS, PHP Selector are innovated features to isolate the impact and take control of servers resources such as CPU, IO, and Memory. You might have deployed them on your production servers and want to install LiteSpeed on your CloudLinux environment.

LiteSpeed development team works very closely with CloudLinux team for capabilities between LiteSpeed and CloudLinux to make sure both work seamlessly.

Like other operating system, installation process on ClouxLinux is as easy as two steps: installation of LiteSpeed Web Server and install/configure PHP.

Most of the time, you may have one of the control panel installed already to make your life easy, such as cPanel, Plesk or DirectAdmin. You can just follow the corresponding guide to install LSWS, for example, cPanel, Plesk and DirectAdmin.

For installation/configuration of PHP, you may have already used CloudLinux PHP Selector for your customers. LiteSpeed works very well with PHP Selector and you can certainly continue to use it as you wish. Please check this instruction get PHP Selector configured.

Generally speaking, you have to enable PHP SuEXEC in shared hosting environment. Make sure to set it “Yes” or “User's Home Directory Only”. You should use PHP SuEXEC Worker mode or PHP SuEXEC ProcessGroup mode for CloudLinux since PHP SuEXEC Daemon mode is incompatible with PHP Selector. check here for setup details. Since PHP SuEXEC Worker mode is incompatible with Opcode Cache, SeEXEC ProcessGroup mode may be good for relatively busy sites and take advantage of PHP Opcode Cache to speed up the loading time.

A good and recommended practice is to set Apache Offset Port, such as 2000 or other numbers you prefer, during the installation process for testing purpose, which means running both Apache and LiteSpeed server parallelly. Apache will run on port 80 while LiteSpeed will run at port 2080 instead, which will give you opportunity to test LiteSpeed without impacting your real live traffic. If the test runs successfully, you can reset Apache Offset Port to “0” and switch over to LiteSpeed to let LiteSpeed to handle your real traffic.

For more detailed configuration on LVE, CageFS or PHP Selector, please check CloudLinux documentations

litespeed_wiki/cloudlinux/installation.txt · Last modified: 2015/11/06 22:13 by Michael Alegre