[solved] Dual PHP 5.2/5.3 on cPanel/WHM

#1
Can someone share clear step by step instructions for setting up php 5.2/5.3 in dual mode so we can select them either/or on a cpanel/whm vps server.

Whenever I compile php from Litespeed 5.2.x, and then try to compile 5.3.x with different install path, it overwrites 5.2.x as default...

Thank you.
 
Last edited by a moderator:
#3
total 280100
-r-xr-xr-x 1 root root 3249 Sep 29 05:27 RailsRunner.rb
-r-xr-xr-x 1 root root 1095 Sep 29 05:27 RailsRunner.rb.2.3
-r-xr-xr-x 1 root root 3317 Dec 13 2009 lsperld.fpl
-r-xr-xr-x 1 root root 2268816 Dec 13 2009 lsphp
-rwxr-xr-x 1 root root 22904602 Dec 13 2009 lsphp-5.2.11
-rwxr-xr-x 1 root root 22990164 Dec 30 2009 lsphp-5.2.12
-rwxr-xr-x 1 root root 22990164 Dec 30 2009 lsphp-5.2.12.bak
-rwxr-xr-x 1 root root 22374221 May 15 2010 lsphp-5.2.13
-rwxr-xr-x 1 root root 22374221 May 15 2010 lsphp-5.2.13.bak
-rwxr-xr-x 1 root root 22429734 Aug 26 2010 lsphp-5.2.14
-rwxr-xr-x 1 root root 22449200 Feb 27 2011 lsphp-5.2.16
-rwxr-xr-x 1 root root 22449200 Feb 15 2011 lsphp-5.2.16.bak
-rwxr-xr-x 1 root root 22441308 Oct 9 01:04 lsphp-5.2.17
-rwxr-xr-x 1 root root 22441308 Oct 9 00:54 lsphp-5.2.17.bak
-rwxr-xr-x 1 root root 29123954 Oct 7 12:39 lsphp-5.3.8
-rwxr-xr-x 1 root root 29200251 Oct 7 12:25 lsphp-5.3.8.bak
lrwxrwxrwx 1 root root 7 Dec 13 2009 lsphp4 -> ./lsphp
lrwxrwxrwx 1 root root 12 Oct 9 01:04 lsphp5 -> lsphp-5.2.17
here is the output.
 

NiteWave

Administrator
#4
per the output, lsphp5 is just a symbol link, the lsphp you built lsphp-5.3.8,lsphp-5.2.17 are all there.

Whenever I compile php from Litespeed 5.2.x, and then try to compile 5.3.x with different install path, it overwrites 5.2.x as default...
when you want 5.2.17 as default lsphp5, after build 5.3.x, run

#cd /usr/local/lsws/fcgi-bin
#ln -sf lsphp-5.2.17 lsphp5

then restart lsws
 
#5
per the output, lsphp5 is just a symbol link, the lsphp you built lsphp-5.3.8,lsphp-5.2.17 are all there.


when you want 5.2.17 as default lsphp5, after build 5.3.x, run

#cd /usr/local/lsws/fcgi-bin
#ln -sf lsphp-5.2.17 lsphp5

then restart lsws
how can they be used in live environment? how would the end user select if they want to use 5.3.x or 5.2.x...
 
Top