[Resolved] Litespeed and phpselctor per directory ?

Status
Not open for further replies.

wanah

Well-Known Member
#1
Hello,

Will this work directly with litespeed ?
Code:
http://cloudlinux.com/blog/clnews/652.php
If so any chance of a wiki entry about how to set it up ?

Thanks
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#2
You can do the following to make LiteSpeed compatible with php selector per directory.
Force reinstall LSWS 4.2.22 to get the latest build.

follow
https://www.litespeedtech.com/suppo...unning-multiple-versions-with-a-control-panel
to setup multiple PHP handler for .php52 .php53 .php54 .php55 .php56 , skip the version you do not need.

For external app php53 uses PHP binary
Code:
/opt/alt/php53/usr/bin/lsphp
php54 uses binary
Code:
/opt/alt/php54/usr/bin/lsphp
and so on.
 
Last edited by a moderator:

wanah

Well-Known Member
#3
Thanks, you are amazing…

How many webservers would update their software in a couple of days to make it compatible with another suppliers software ! :)

I will test this as soon as I get some free time :)
 

wanah

Well-Known Member
#4
Sorry for the long delay. I've only just had time to test this.

It works well :)

Now our customers can have different php versions per directory and even change each version's settings and modules seperatly.
 
#5
You can do the following to make LiteSpeed compatible with php selector per directory.
Force reinstall LSWS 4.2.22 to get the latest build.

follow
http://www.litespeedtech.com/suppor...peed_wiki:multiple_phps_in_control_panel_lsws
to setup multiple PHP handler for .php52 .php53 .php54 .php55 .php56 , skip the version you do not need.

For external app php53 uses PHP binary /opt/alt/php53/usr/bin/lsphp, php54 uses binary /opt/alt/php54/usr/bin/lsphp, and so on.
Hi,

I'd like to do the same thing as OP, but unfortunately the link you posted is broken. Could you provide instructions for this? Thanks.
 
#7
Thanks mistwang. For cron jobs for example, I assume we could use
Code:
/usr/local/bin/lsphp -q some-script.php
even for accounts using non-native versions of php through CloudLinux's PHP selector?
 
Status
Not open for further replies.
Top