Compiling PHP with LiteSpeed: No rule to make target

theRKF

Well-Known Member
#1
I'm trying to compile PHP with LiteSpeed for the first time on a new server, using the guideline at http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi 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.
 

theRKF

Well-Known Member
#3
Ok, I'm sold on that idea ...

Downloaded a fresh archive for php 5.4.0, ran configure, make.

That worked. Not sure what was different this time around, versus the previous 4-5 attempts :)
 

theRKF

Well-Known Member
#5
LSAPI from website http://www.litespeedtech.com/lsapi-downloads.html is good for 5.3 and under. For PHP 5.4, better to use the one comes with it. BTW, since LSAPI ship with PHP since 5.3, it is safe to use the one comes with the package.
I just ran into this problem with 5.4 (and 5.5? can't remember if it happened on both). Earlier I was told to d/l the LSAPI from LiteSpeed to get the most current version. I think version 5.5 is the one shipping with PHP 5.4, but the newer LSAPI I downloaded produced this error.

Should we just stick with the lower version of the API?
 

NiteWave

Administrator
#8
for WHM/cPanel, the recommended way is: use EasyApache to build php(either the system is running litespeed or apache), then "Build Matching PHP" in WHM lsws plugin.

php lsapi version will be selected automatically. current version is 6.3(the latest)
 

theRKF

Well-Known Member
#9
for WHM/cPanel, the recommended way is: use EasyApache to build php(either the system is running litespeed or apache), then "Build Matching PHP" in WHM lsws plugin.

php lsapi version will be selected automatically. current version is 6.3(the latest)
Wow, that's news to me. I've always been told to build through the LS control panel, and when that failed (constantly) or didn't support the latest PHP version I was told to build PHP via command line following the LS tutorial.

We've had LS paid support set up our last two servers, and both times I'm certain they used command line. Is this perhaps because we're running multiple PHP versions?
 

NiteWave

Administrator
#10
for best compatible with apache and convenient for most users, we recommend to run easyApache first + Build Matching PHP mechanism for WHM/cPanel users.

this also applies for multiple php versions -- just repeat same steps one by one.

however, build php through lsws admin console should be work too, especially for users without control panel. build php through command line is actually more complicated than using easyapache.
 

theRKF

Well-Known Member
#11
Ok, got it, thanks - but help me out ... how does this address the LSAPI issue?

Does building through EasyApache + Build Matching get the latest LSAPI working, or are we stuck with v5.5?

Thanks!
 
#12
I think Build Matching PHP will result latest lsapi, at present it's 6.3

please refer the release log:
http://www.litespeedtech.com/litespeed-sapi-release-log.html
from lsapi 6.0, the major change is the new PHP suEXEC daemon mode

5.5 is ok if you needn't this daemon mode and 5.5 has been working well.
in general 6.3 is compatible with 5.5

so I recommend to stick with 6.3, unless 6.3 has unusual compatible/stable issue for your usage in special cases, don't revert back to 5.5. and so far I haven't been aware any such special cases which must revert back to 5.5
 
Top