[Resolved] Check LiteSpeed version from PHP

Discussion in 'General' started by ritchey, Jul 19, 2010.

  1. ritchey

    ritchey New Member

    Recently I've found a bug (chunked POST support) in LiteSpeed, that was fixed in version 4.0.16.
    litespeedtech.com/support/forum/showthread.php?p=20259

    Yesterday my hosting provider upgraded LiteSpeed server to version 4.0.16 (at least they claim to do so). But still - chunked POST requests - are not working.

    Is there any way that I can check from PHP level (this is shared web hosting), if version 4.0.16 has been really installed ?

    Thanks in advance for all answers and suggestions.

    Best Regards,
    Mateusz Maksymiuk
    Last edited by a moderator: Jul 20, 2010
  2. mistwang

    mistwang LiteSpeed Staff

    if you can execute
    "/usr/local/lsws/bin/lshttpd -v"
    from PHP or command line, it will tell you which version of LSWS is installed.
  3. ritchey

    ritchey New Member

    Thank You very much mistwang.
    Although, Your proposal not returned any output (maybe insufficient privileges), but You get me on the right track and I used following:
    PHP:
    $output shell_exec('cat /usr/local/lsws/VERSION');
    echo 
    "<pre>$output</pre>";
    LSWS version is indeed 4.0.16.
    I checked again chunked POST request again, and seems like a miracle has happen - now it works !!!

    Best regards,
    Mateusz Maksymiuk

Share This Page