lsws 5.2.1 - cloudlinux php selector not working - help

#1
Hi,

I am running Litespeed 5.2.1, with CloudLinux and cPanel and trying to setup CloudLinux PHP Selector and I am at a loss as how to get it working.
I have tried to following CloudLinux guide but didn't work, so I am not here asking for help

On the docs is say to edit lsphp5, but I don't have that I have lsphp5x to lsphp7x

So far I have tried the following:
Coniguration -> Server -> General -> Cloud Linux: CageFS
Coniguration -> Server -> General -> PHP suEXEC: Yes

Coniguration -> Server -> External App; I have:

LSAPI App - lsphp70 - uds://tmp/lshttpd/lsphp70.sock
LSAPI App - lsphp71 - uds://tmp/lshttpd/lsphp71.sock
LSAPI App - lsphp56 - uds://tmp/lshttpd/lsphp56.sock
LSAPI App - lsphp55 - uds://tmp/lshttpd/lsphp55.sock
LSAPI App - lsphp54 - uds://tmp/lshttpd/lsphp54.sock
LSAPI App - cl_phpselector - uds://tmp/lshttpd/cl_phpselector.sock

I tried editing lsphp56 and doing

Command: /usr/local/bin/lsphp
Run On Start Up: Yes

This didn't work

Any ideas on how to get this working?

Regards,
Garry
 

NiteWave

Administrator
#2
settings of
Configuration -> Server -> Script Handler ?
you needn't edit lsphp56, since after editing, lsphp56 almost same as cl_phpselector ? right, cl_phpselector is just for cloudliunx php selector.
in above Script Handler, for php suffix, select cl_phpselector as handler
 
#3
All the lsphpxx are pointing to cPanel EA version

In Script Hanlder I have

php70 LiteSpeed SAPI [Server Level]: lsphp70 Edit Delete
php71 LiteSpeed SAPI [Server Level]: lsphp71 Edit Delete
php56 LiteSpeed SAPI [Server Level]: lsphp56 Edit Delete
php55 LiteSpeed SAPI [Server Level]: lsphp55 Edit Delete
php5 LiteSpeed SAPI [Server Level]: cl_phpselector Edit Delete
php54 LiteSpeed SAPI [Server Level]: lsphp54 Edit Delete
php LiteSpeed SAPI [Server Level]: cl_phpselector

Which, I haven't touched.
 

NiteWave

Administrator
#4
1. how about lsws 5.1.17 ?
2. please check cPanel Admin Home → Software → Multi-PHP Manager, to have cloudlinux alt-php work,
the domain's PHP version should be same as "System PHP Version"
 
#5
I have some how fixed it, not 100% sure what I did.
I did have the System PHP Version on 7.0, but now 5.6 and removed all other multi installs via EasyApache.
So maybe PHP 7.0 being System version was the issue.
 
Top