LSWS chroot broken in 2.1.8?
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:
(with and without the trailing /opt/lsws, with ownership of root and nobody)
All give the same error message. Where am I screwing up :)?
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
Then when prompted by the install script installed LSWS under it.
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. :-)
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?
|All times are GMT -7. The time now is 02:04 AM.|