Configure Plesk and Litespeed for CloudLinux PHP

Modified on Tue, 07 Mar 2023 at 08:25 PM

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.

enforce-CloudLinux-php-selector-to-LSWS-on-plesk


Source: https://docs.litespeedtech.com/lsws/cp/plesk/configuration/#set-up-extra-handler

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article