When installing Litespeed, CloudLinux is automatically detected. However, you will need to set the CloudLinux PHP handler in order to add support for the CloudLinux PHP selector.
Navigate to LSWS Web Admin Console > Server > PHP > Add PHP Handlers and set the following:
- Handler ID: php
- Command: /var/www/cgi-bin/cgi_wrapper/cloudlinux_wrapper
- Handled Suffixes: php, php54, php55, php56, php70, php71, php72, php73, php74, php80, php81, php82
When new PHP versions are released, make sure to add them to the handled suffixes as well. E.g. when PHP 8.3 is released, add , php83. If PHP 9 is released, add , php90.
The above settings will force the listed Plesk PHP versions to use CloudLinux PHP selector.
Source: https://docs.litespeedtech.com/lsws/cp/plesk/configuration/#set-up-extra-handler