you can try the build script from command line, go to
/usr/local/lsws/phpbuild/
The execute "./phpbuild.xxxxxxxxxxx.sh" manually, see if it get passed, if it is OK, then it is more likely a problem with PHP memory limit. You need to manually copy over
phpbuild/php-5.2.8/sapi/litespeed/php to...