Since the root directory has been changed to /opt, so the path to lsphp should be
/lsws/fcgi-bin/lsphp, no /opt/lsws/...
Another tool to debug this is to use "strace" under the chroot, copy strace to the jail
then do
chroot /opt strace /lsws/fcgi-bin/lsphp <you_test_php_script>