[solved] LSAPI + Suxec deamon mode + multiple PHP versions + cPanel ?

Discussion in 'Install/Configuration' started by wanah, Sep 26, 2013.

  1. wanah

    wanah Well-Known Member

    Last edited by a moderator: Sep 30, 2013
  2. NiteWave

    NiteWave Administrator

    it will work
  3. wanah

    wanah Well-Known Member


    Where will the php.ini be placed when I run make install ?
  4. NiteWave

    NiteWave Administrator

    run lsphp5xx on command line:
    #/path/to/lsphp5xx -i|grep "Configuration File (php.ini) Path"

    an example:
    in above example, put php.ini under /usr/local/lsws/lsphp5/lib
  5. wanah

    wanah Well-Known Member


    I think i've got php 5.4 installed and configured, I now guess I've got to configure cagefs so users can run php with suexec

    I'll ask CloudLinux about this.
  6. wanah

    wanah Well-Known Member

    OK, I've sort of got it working, however it's using an old lsapi version.

    My cPanel's default PHP version is using LiteSpeed V6.3

    However the PHP 5.4 I built following the instructions you gave says :

    LiteSpeed V5.5

    What did I do wrong ? How do I specify the LSAPI version when I build PHP ?

  7. NiteWave

    NiteWave Administrator

    maybe you select the php from php selector from cloudlinux ?

    if casefs enabled ... Sorry, I'm not clear about it at the moment, just give you a quick hint. :)
  8. wanah

    wanah Well-Known Member

    No, I manually compiled PHP to /usr/local/lsws/php54

    /usr/local/lsws is mounted by default in CloudLinux so this folder is already fully accessible.

    My issue seems to be that the --with-litespeed configured PHP with LSAPI 5.5

    I'm running PHP in deamon mode which is not compatible with PHP selector yet, that's why I compiled it manually.

    Do I have to add anything else to the PHP configure command to get PHP to compile with LSAPI 6.3 and not LSAPI 5.5 ?
  9. NiteWave

    NiteWave Administrator

    define ('LSAPI_VERSION', '6.3');
  10. wanah

    wanah Well-Known Member


    The instructions didn't metionion using a build utility, I ran ./configure [...] '--with-litespeed'

    However I did buil PHP version 5.4.20 and this file contains

    PHP_VER = array('5'=>
    define ('LSAPI_VERSION', '6.3');
    Does this mean I can't go over 5.4.19 ?

    Also I did not use this file, it does conatin 'LSAPI_VERSION', '6.3' but how is the ./configure command supposed to know that ?
  11. NiteWave

    NiteWave Administrator

    re-read the thread from beginning, got idea what might have been wrong.

    this file is used for build lsphp from lsadmin consonle:

    and it'll update from time to time when new release/build comes out, so not a issue regarding "can't go over 5.4.19"

    this wiki http://www.litespeedtech.com/suppor...peed_wiki:multiple_phps_in_control_panel_lsws don't mention lsapi version.

    just now I downloaded latest php-5.4.20 source, sapi/litespeed still in 5.5 version. to build with latest lsapi 6.3, please go http://www.litespeedtech.com/lsapi-downloads.html to get the latest 6.3, extract it, and replace all *.h and *.c in php-5.4.20/sapi/litespeed/ (and keep other files), then start build lsphp-5.4.20, the lsapi will be latest lsapi 6.3

    I think(not verify yet) the GUI in admin console to build lsphp has automated above process.

    Sorry for the inconvenience caused.
  12. wanah

    wanah Well-Known Member

Share This Page