This is an old revision of the document!
PHP with LiteSpeed Web Server
How to configure PHP for LSWS on control panel environment?
If you use any control panel such as cPanel, Plesk or DirectAdmin , there is no extra configuration required since LSWS installaion script will configure everything for you and you should run PHP out of the box after installation. LSWS will use the same PHP as Apache set on your control panel automatically.
You can refer to the corresponding section for your environment to understand how it works for
If you are using CloudLinux, PHP selector is the recommended way to set up PHP.
Install and Configurate PHP on LSWS native mode Without a Control Panel
Unlike apache or nginx using php-fpm or fastcgi, LSWS uses lsphp, which is faster than php-fpm or fastcgi. On LSWS native mode, you can install lsphp from LiteSpeed CentOS, Ubuntu/Debian repositories, then create/configure external app and script handler to point LSWS to use newly installed php binaries.
Please see this LSPHP Setup Overview.
Install LSPHP
Create/Configrate PHP external apps and script handlers
PHP Execution Method
Please see suEXEC or non-suEXEC, a guide to figure out which PHP setup you are using.
PHP Process Modes: ProcessGroup/Daemon/Worker
LiteSpeed Web Server offers a number of different PHP process modes for the various needs and goals of shared hosting providers: ProcessGroup mode, Daemon mode, and Worker mode.
PHP Opcode Cache
PHP Detached Mode
PHP Troubleshooting
Set up Multiple Versions of PHP
Install PHP PECL Extensions on LSWS native mode or OpenLiteSpeed
Check the availability of LSPHP PECL extention or build by yourself? See How to install pecl extention for LSPHP.
Performance tips
Configuration Tips
Add-Ons/Extensions
Archive Only
The following articles are deprecated and are listed here for archival purposes only: