Hi Seyed,
Is there a reason for php-fpm specifically? LiteSpeed's SAPI should have better performance compared to php-fpm.
Either way, if you were able to successfully compile PHP 7, another user asked a similar question regarding getting it working. Check
this out, starting on comment 4.
Cheers,
Kevin