PHP Compilation for Litespeed Webserver

Litespeed web server doesn’t come with all PHP modules, we need to compile PHP from source to add any new (or) third-party modules to PHP.

When the Litespeed installation is done, we can compile php and add the new php as a module.

1. Download the desired php version we need from http://php.net/downloads.php. Here we are picking latest stable 5.3.20 version.

wget http://in1.php.net/get/php-5.3.20.tar.gz/from/us1.php.net/mirror
tar -zxf php-5.3.20.tar.gz


2. Change the directory to sapi

cd php-5.3.20/sapi


3. We need to download latest litespeed module for php. (PHP 5.3.x comes with litespeed 4.x module but we are picking latest module from here )

rm -rf litespeed
wget http://www.litespeedtech.com/packages/lsapi/php-litespeed-6.1.tgz
tar -zxf php-litespeed-6.1.tgz


Continue reading PHP Compilation for Litespeed Webserver