Hi,
the difference between
$SERVER_ROOT/fcgi-bin/lsphp5
and
/usr/local/lsws/lsphpXX/bin/lsphp
is that , first one comes with OLS installation , the others , you need to use apt or yum to install binary first.
for extension , if it is not in repo , then please manually compile it...