Installing PHP 5.4.0 with LiteSpeed

RKFcomputers used Ask the Experts™
I'm trying to compile PHP with LiteSpeed for the first time on a new server, using the guideline at and using PHP 5.4.0.

Here's the ./configure command:
./configure '--prefix=/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-pdo' '--enable-zip' '--with-curl=/opt/curlssl/' '--with-freetype-dir' '--with-jpeg-dir' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl' '--with-openssl-dir=/usr' '--with-pcre-regex' '--with-pdo-mysql' '--with-pdo-sqlite' '--with-pic' '--with-png-dir' '--with-sqlite' '--with-ttf' '--with-xsl' '--with-litespeed'

Once './configure' completes, I run 'make' and get this error:
make: *** No rule to make target `litespeed', needed by `all'.  Stop.

I have searched for a while and cannot find a solution for this problem. Has anyone run into this before?

Any ideas on a solution?

FYI: The web interface failed a number of times, so I opted for the command line install.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Have you unpacked the install files
You are supposed to unpack to a directory and run ./configure, make and make install from

From litespeed manual process for installing php are as follows.
wget -N
tar -zxf php-5.2.16.tar.gz
cd ..
touch ac*
./buildconf --force
./configure '--prefix=/lsphp5' '--with-litespeed' --with-mysql ...
make install
Just make sure you stick with this and there should not be any problem.

Yes, I've gone through those directions, but they are incorrect and outdated.

As it turns out, the only way to make this work is counter to those directions - PHP 5.4.0 comes with an improved version of LSAPI bundled in.

My next project is getting PHP to recognize and load my Zend and Eaccelerator extensions .... but if that continues to be a problem I'll open a new question here.


Found correct help via the LiteSpeed support forum.

The official instructions don't apply to the latest PHP version.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial