lsphp4 and lsphp5

kuts

Well-Known Member
#1
I'm using the Litespeed Ent Trial version on Directadmin. I've recompiled a new PHP 5.2.5.

My question is why are there two lsphp4 and lsphp5 under the external app tab? Do they stand for the version of PHP (e.g. lsphp5 for php 5.2.5)?

If that's the case, according to the top command, the lsphp4 is active when I'm actually using php 5.2.5.

:confused:

I've edited lsphp5 to look like $SERVER_ROOT/fcgi-bin/lsphp (previously $SERVER_ROOT/fcgi-bin/lsphp5)
 

mistwang

LiteSpeed Staff
#2
Please check the directory lsws/fcgi-bin/

lsphp probably is a symbolic link to lsphp4, lsphp5 is a symbolic link to lsphp-5.2.5, if you want to use lsphp5, the command should be $SERVER_ROOT/fcgi-bin/lsphp5.
 

kuts

Well-Known Member
#3
I manually compiled PHP 5.2.5 and executed this in the process

$ cp sapi/litespeed/php /opt/lsws/fcgi-bin/lsphp

and then edited $SERVER_ROOT/fcgi-bin/lsphp5 to $SERVER_ROOT/fcgi-bin/lsphp

I looked at /opt/lsws/fcgi-bin, and there's

lsphp
lsphp4 (which looks like an alias)

also

$ /opt/lsws/fcgi-bin/lsphp4 -v
PHP 5.2.5 (litespeed) (built: Feb 11 2008 20:15:13)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

$ /opt/lsws/fcgi-bin/lsphp -v
PHP 5.2.5 (litespeed) (built: Feb 11 2008 20:15:13)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
 

mistwang

LiteSpeed Staff
#4
since lsphp is a symbolic link to lsphp4, when you did
cp sapi/litespeed/php /opt/lsws/fcgi-bin/lsphp

lsphp4 was replaced with the php 5.2.5 binary. LSWS always resolve the symbolic link and point to the real file, so you will see lsphp4 in the output of "top".
 
Top