Yes, I know what's needed.
I've modified php.spec from EPEL for Fedora and RHEL7/8 many times to build rpm php-litespeed. Recently I've also started using remi repository, it was easier.
Unfortunately, building deb, especially php is too complicated for me. I use deb.sury.org anyway, it would...