This is an old revision of the document!


PHP

Unlike Apache's mod_php, which embeds the PHP engine inside web server processes, LiteSpeed Web Server talks to standalone PHP engine processes via LSAPI interface. You will need to install PHP either through RPMs or compiling from Source code, create a PHP external application mapping to the installed PHP Binary and set a script handler mapping to the PHP external application.

PHP Installation

How Do I Configure LSWS for PHP?A step-by-step guide
Compile PHP for LSWSCompiling PHP with LSAPI through the WebAdmin console
Installing LSPHP via RPMThe faster way to get PHP

PHP Mode

suEXEC or non-suEXECGuide to figure out which PHP setup they are using

PHP Opcode Cache

Opcode Caching OverviewAn introduction to opcode caching, its limitations, and popular opcode caches
PHP Opcode Cache: APCHow to setup proper opcode caching for PHP

PHP 7

PHP 7 InstallationHow to install PHP 7 on LSWS.

PHP Troubleshooting

Troubleshooting 503 ErrorsBasic steps to troubleshoot PHP-related issues in LSWS.
Troubleshooting PHP compiling errorsA troubleshooting guide for compiling and installing a custom PHP with LSAPI

CloudLinux PHP Selector

CloudLinux PHP Selector How-ToPHP Selector(CloudLinux) How-To: Install and Configurations with LSWS

Add-Ons/Extensions

PHP + OracleHow to connect to Oracle with PHP + LSAPI
PHP5 + Suhosin Patch and ExtensionHow to build a Litespeed PHP5 LSAPI With Suhosin Patch and Extension
PHP5 + Suhosin Patch and Extension (FreeBSD 6.2)How to build a Litespeed PHP5 LSAPI With Suhosin Patch and Extension on FreeBSD 6.2
PHP Upload Progress BarHow to setup upload progress bar for PHP
New Relic Installation GuideHow to get New Relic to work with LSWS

Configuration Tips

PHP LSAPI Ubuntu PackageHow to create a .deb package with PHP + LSAPI for Ubuntu Dapper Drake and Edgy Eft
LSPHP Command Line ModeGood for service scalability.
PHP/MySQLPerformance tip: avoid php/mysql persistent connections.
Run multiple PHPs in LiteSpeed + Control PanelHow to run multiple PHPs in LiteSpeed together with control panel
Disable PHP timeoutsMake LSWS compatible with long-running processes
Generate Source CodeUse LSAPI to generate source code for viewing with a browser
Environment Variables for PHP FCGI Applications?Supported environment variables for non-LSAPI applications
Enabling Per-User php.ini FilesFour methods for enabling per-user php.ini when
Controlling PHP ConcurrencyHow to control how many connections your PHP engine can serve at once
PHP Max Wait Queue LimitPreventing the PHP wait queue from getting too long
PHP performanceHow to improve PHP performance
Disable 3rd party module for specific accountHow to disable 3rd party module for specific account
Control PHP max idle timeHow to control PHP max idle time
Increase PHP Memory LimitHow to increase PHP Memory Limit
  • Admin
  • Last modified: 2015/06/29 15:38
  • by Jackson Zhang