add this line as you need on /etc/container/php.handler

application/x-lsphp52 /opt/alt/php52/usr/bin/lsphp
application/x-lsphp53 /opt/alt/php53/usr/bin/lsphp
application/x-lsphp54 /opt/alt/php54/usr/bin/lsphp
application/x-lsphp55 /opt/alt/php55/usr/bin/lsphp
application/x-lsphp56 /opt/alt/php56/usr/bin/lsphp
application/x-lsphp70 /opt/alt/php70/usr/bin/lsphp
application/x-lsphp71 /opt/alt/php71/usr/bin/lsphp
application/x-lsphp72 /opt/alt/php72/usr/bin/lsphp
application/x-lsphp73 /opt/alt/php73/usr/bin/lsphp
application/x-lsphp74 /opt/alt/php74/usr/bin/lsphp

create a file /etc/cl.selector/symlinks.rules add the following content: php.d.location = selector

And run the command to apply changes:

/usr/bin/selectorctl –apply-symlinks-rules

The most important thing is to check back in the litespeed panel for the External App and Script Handler for all php versions.

I didn’t know it wasn’t generated automatically when I installed litespeed on cloudlinux + php selector

the last use .htaccess to handle php version for example using 7.1 put inside subdomain folder/folder

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-lsphp71

i hope this helpĀ