you can try the build script from command line, go to
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 lsws/fcgi-bin/lsphp-5.2.8
Please let me know it works or not.