Php lsapi 5.0

Discussion in 'PHP' started by anewday, Jan 14, 2010.

  1. anewday

    anewday Moderator

    Does 4.0.12 include the newest version? How do I upgrade my existing 4.0.11 to this?
     
  2. sux0r

    sux0r Well-Known Member

    I think the easiest way to upgrade is from the Litespeed Web Admin Control Panel.

    From Actions --> Version Manager

    After upgrade if you compile the php again it'll be with the newest released LSAPI i think (v5.0)
     
  3. anewday

    anewday Moderator

    I can't upgrade because the license expired.
     
  4. mistwang

    mistwang LiteSpeed Staff

    change buildconf.inc.php:

    to use the latest LSAPI code.
     
  5. anewday

    anewday Moderator

    Where is the buildconf.inc.php file? I can only find buildconf and the above code is not there.
     
  6. NiteWave

    NiteWave Administrator

    /path/to/lsws/admin/html/utility/build_php/buildconf.inc.php
     
  7. anewday

    anewday Moderator

    Thanks.

    Saw this in the log when trying to build php.

    #######################
    Stopped due to error. Please manually fix it.

    Main Status:

    **MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1263795187.8.progress
    Preparing all source code for building PHP 4.4.9 with LSAPI
    **ERROR** Could not delete old php directory /usr/local/lsws/phpbuild/php-4.4.9

    Detailed Log:

    **LOG_DETAIL** retrieved from /usr/local/lsws/phpbuild/buildphp_1263795187.8.log
    =============================================================
    Preparing all source code for building PHP 4.4.9 with LSAPI
    =============================================================
    Mon Jan 18 00:13:07 CST 2010

    Changing to build directory /usr/local/lsws/phpbuild
    rm: cannot remove `php-4.4.9/php.ini-dist': Permission denied
    rm: cannot remove `php-4.4.9/include/php_sab_info.h': Permission denied
    rm: cannot remove `php-4.4.9/autom4te.cache/output.0': Permission denied
    rm: cannot remove `php-4.4.9/autom4te.cache/requests': Permission denied
    rm: cannot remove `php-4.4.9/autom4te.cache/traces.0': Permission denied
    rm: cannot remove `php-4.4.9/README.EXT_SKEL': Permission denied
    rm: cannot remove `php-4.4.9/libtool': Permission denied
    rm: cannot remove `php-4.4.9/footer': Permission denied
    rm: cannot remove `php-4.4.9/generated_lists': Permission denied
    rm: cannot remove `php-4.4.9/server-tests.php': Permission denied
    rm: cannot remove `php-4.4.9/cvsclean': Permission denied
    rm: cannot remove `php-4.4.9/ls_install_result.txt': Permission denied
    rm: cannot remove `php-4.4.9/README.CVS-RULES': Permission denied
    rm: cannot remove `php-4.4.9/acconfig.h': Permission denied
    rm: cannot remove `php-4.4.9/stub.c': Permission denied

    **ERROR** Could not delete old php directory /usr/local/lsws/phpbuild/php-4.4.9
    #######################
     
  8. anewday

    anewday Moderator

    I renamed the directory /usr/local/lsws/phpbuild/php-4.4.9 and ran the build again. Now, it is working.

    George, maybe add a check for permissions to the buildphp script and change the directory if necessary?

    # chown -R lsadm:lsadm /usr/local/lsws/phpbuild/php-4.4.9

    I saw that on ssh after php was done compiling.
     
    Last edited: Jan 18, 2010
  9. anewday

    anewday Moderator

  10. anewday

    anewday Moderator

    4.0.12 lsws/admin/html/utility/build_php/buildconf.inc.php is pointing to lsapi 4.1. :eek: Will you update it to 5.2 and the others to the newest versions?

    define ('LSAPI_VERSION', '4.10');
    define ('SUHOSIN_VERSION', '0.9.29');
    define ('APC_VERSION', '3.1.3p1');
    define ('XCACHE_VERSION', '1.3.0');
     
  11. mistwang

    mistwang LiteSpeed Staff

    Just update
    define ('LSAPI_VERSION', '5.2');

    to try the latest 5.2 release.
     
  12. anewday

    anewday Moderator

    Yes, I know but it makes sense to include it by default. :)
     
  13. bhanuprasad1981

    bhanuprasad1981 Well-Known Member

    so just editing config file and gracefull restart enables lsapi 5.3 ? , i trioed but i still see 4.1 in phpinfo ?
     
  14. mistwang

    mistwang LiteSpeed Staff

    Yes. that's correct.
     
  15. bhanuprasad1981

    bhanuprasad1981 Well-Known Member

    but i still see 4.1 i am missing something ?
     
  16. NiteWave

    NiteWave Administrator

    re-read post #4-#6 of this thread :)
     
  17. anewday

    anewday Moderator

    You need to rebuild PHP after making the changes to the file.
     
  18. bhanuprasad1981

    bhanuprasad1981 Well-Known Member

    rebuild php using litespeed whm plugin option "Build Matching PHP Binary" ?
     
  19. anewday

    anewday Moderator

    George, thought I'll remind you to add a check for the lsadm permissions in compile php. :)

    chown -R lsadm:lsadm /path/to/phpbuild/php-..../
     
  20. anewday

    anewday Moderator

    How to configure to build php 5.3.2?
     

Share This Page