We have a whole separate guide on how to configure PHP Selector on the Plesk panel. You can read it here. This how-to article explains how to setup CloudLinux PHP Selector with mod_lsapi for a website hosted on the Plesk control panel. In this guide, we assume that you already completed PHP Selector Installation.
First, you need to make sure that you have LSPHP by vendor OS PHP handler installed and enabled for your users. Logged as admin go to Tools & Settings
> PHP Settings > find "LSPHP by vendor OS FastCGI application" in the list. If it is disabled, you need to enable it. If you cannot find this handler in the list you will need to install native PHP on Plesk and setup the handler. Here is how you can do it:# yum install php
# yum install liblsapi liblsapi-devel
# yum install mod_lsapi
# /usr/bin/switch_mod_lsapi --setup
The handler should be present now.
Next, log in as a user and configure the handler for a website you need to have PHP Selector running for. Note: For recent Plesk Obsidian, Plesk PHP Settings page is hidden when PHP Selector is enabled for domain and the PHP version changing on the PHP Selector page
For older, see the setup below:
That's it, go to PHP Selector and try changing the PHP versions there.
Comments
0 comments
Please sign in to leave a comment.