LSWS chroot broken in 2.1.8?

zellster

Well-Known Member
#1
Hello,

I am attempting to install 2.1.8-ent on a dual-proc CentOS 4.2 box. When I select a chroot install, I always get the following error message:

"Server root is not included in the chroot directory tree"

Server root in this case is /opt/lsws, and I have tried it with the following created directories:

/home/jail/opt/lsws
/home/chroot/opt/lsws
/jail/opt/lsws
/chroot/opt/lsws
(with and without the trailing /opt/lsws, with ownership of root and nobody)

All give the same error message. Where am I screwing up :)?
 

zoom

Well-Known Member
#2
zellster,
I'm not sure about the 2.1.8(ent) edition but I did install the 2.1.7(pro) edition into a chroot'd environment successfully. All I did was create a directory

mkdir /chroot

Then when prompted by the install script installed LSWS under it.

/chroot/opt/lsws
 

mistwang

LiteSpeed Staff
#3
If you install lsws to /opt/lsws, then you can only chroot lsws to /opt or /opt/lsws, as the lsws must be installed inside the jail. when you specify the server root path, full path including the jail must be given. :)
 

zellster

Well-Known Member
#4
OK, now it makes sense. Found one other problem while continuing the chroot install:

------------
Chroot directory without trailing '/': /home/lsws

Installing, please wait...

ldd: /home/lsws/fcgi-bin/php: No such file or directory
------------

Presumably this is from:
$LSWS_HOME/admin/misc/chroot.sh $CHROOT_PATH $LSWS_HOME/fcgi-bin/php

Should php be changed to lsphp?

Thanks!
 
Top