Besides Apache you could also add `PHP_SAPI, 'litespeed'` to the check, as it would work as well here.