chrooting by LiteSpeed Issue

-j0

New Member
#1
Hello,

Am trying here to chroot php with LiteSpeed,

I did use php 5.2.9 first and then 5.2.13, with the same problem in the same line

now i follow this thread

http://forums.digitalpoint.com/showthread.php?t=1355344

and this ( seems copy/paste )

http://r00tsecurity.org/forums/topic/9280-installingconfiguring-litespeed-with-chroot/

now i did compiled the apache with the following command

Code:
./configure --enable-bcmath --enable-calendar --enable-dbase --enable-exif --enable-gd-native-ttf --enable-libxml --enable-ftp --enable-magic-quotes --enable-mbstring --enable-soap --enable-wddx --enable-zip --prefix=/usr/local --with-litespeed --with-config-file-path=/usr/local/lib --enable-suhosin --with-bz2 --with-curl=/opt/curlssl/ --with-curlwrappers --with-freetype-dir=/usr --with-gd --with-gettext --with-imap=/opt/php_with_imap_client/ --with-kerberos --with-imap-ssl=/usr --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-libexpat-dir=/usr --with-libxml-dir=/opt/xml2 --with-libxml-dir=/opt/xml2/ --with-mcrypt --with-mhash=/opt/mhash/ --with-mime-magic --with-mm --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --with-openssl --enable-pdo=shared --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-sqlite=shared  --with-pic --with-png-dir=/usr --with-ttf --with-xmlrpc --with-xpm-dir=/usr --with-xsl=/opt/xslt/ --with-zlib --with-zlib-dir=/usr --with-pspell --with-pear --enable-sockets --with-snmp --enable-ucd-snmp-hack --with-tidy=/usr
the output error was

Code:
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

Notice: Following unknown configure options were used:

--with-litespeed
--enable-suhosin

Check './configure --help' for available options

[root@server php-5.2.9]#
which mean

Code:
--with-litespeed
--enable-suhosin
so then i run "make"

Code:
[root@server php-5.2.9]# make
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
[root@server php-5.2.9]#
which look here that the error

Code:
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
then the same error with "make install"

Code:
[root@server php-5.2.9]# make install
same "make" resualt and error
my server info

uname -a

Code:
[root@server php-5.2.9]# uname -a
Linux website.me.com 2.6.18-194.3.1.el5.028stab069.6 #1 SMP Wed May 26 18:31:05 MSD 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@server php-5.2.9]#
any help ??
 

-j0

New Member
#2
And the Last Issue,

Code:
make 
TSRM/tsrm_virtual_cwd.o: In function `virtual_file_ex':
/chroot/lsws/phpbuild/php-5.2.13/TSRM/tsrm_virtual_cwd.c:561: undefined reference to `php_realpath'
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
[root@server php-5.2.13]#

make install
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1
[root@server php-5.2.13]# pwd
/chroot/lsws/phpbuild/php-5.2.13
[root@server php-5.2.13]# cd /opt/lsws/fcgi-bin
-bash: cd: /opt/lsws/fcgi-bin: No such file or directory
[root@server php-5.2.13]# cd /chroot/lsws/fcgi-bin
[root@server fcgi-bin]# ls -la
total 42832
drwxr-xr-x  2 root root      4096 Jun  3 05:07 .
drwxr-xr-x 16 root root      4096 Jun  3 04:51 ..
-r-xr-xr-x  1 root root      3317 Jun  2 10:21 lsperld.fpl
-r-xr-xr-x  1 root root   2016216 Jun  3 04:43 lsphp
lrwxrwxrwx  1 LSWS HTTPD        7 Jun  2 10:21 lsphp4 -> ./lsphp
lrwxrwxrwx  1 root root        12 Jun  3 05:07 lsphp5 -> lsphp-5.2.13
-rwxr-xr-x  1 root root  19871754 Jun  3 05:07 lsphp-5.2.13
-rwxr-xr-x  1 root root  19862305 Jun  3 04:51 lsphp-5.2.9
-r-xr-xr-x  1 LSWS HTTPD  2016216 Jun  2 11:42 lsphp.old
-r-xr-xr-x  1 root root      4666 Jun  3 04:43 RailsRunner.rb
-r-xr-xr-x  1 root root      1095 Jun  3 04:43 RailsRunner.rb.2.3
[root@server fcgi-bin]# mv lsphp lsphp.old
mv: overwrite `lsphp.old'? no
[root@server fcgi-bin]# mv lsphp.old lsphp.old_1
[root@server fcgi-bin]# mv lsphp lsphp.old
[root@server fcgi-bin]# ls -la
total 42832
drwxr-xr-x  2 root root      4096 Jun  3 05:50 .
drwxr-xr-x 16 root root      4096 Jun  3 04:51 ..
-r-xr-xr-x  1 root root      3317 Jun  2 10:21 lsperld.fpl
lrwxrwxrwx  1 LSWS HTTPD        7 Jun  2 10:21 lsphp4 -> ./lsphp
lrwxrwxrwx  1 root root        12 Jun  3 05:07 lsphp5 -> lsphp-5.2.13
-rwxr-xr-x  1 root root  19871754 Jun  3 05:07 lsphp-5.2.13
-rwxr-xr-x  1 root root  19862305 Jun  3 04:51 lsphp-5.2.9
-r-xr-xr-x  1 root root   2016216 Jun  3 04:43 lsphp.old
-r-xr-xr-x  1 LSWS HTTPD  2016216 Jun  2 11:42 lsphp.old_1
-r-xr-xr-x  1 root root      4666 Jun  3 04:43 RailsRunner.rb
-r-xr-xr-x  1 root root      1095 Jun  3 04:43 RailsRunner.rb.2.3
[root@server fcgi-bin]# cp /usr/src/php-5.2.13/sapi/litespeed/php ./lsphp
cp: cannot stat `/usr/src/php-5.2.13/sapi/litespeed/php': No such file or directory
[root@server fcgi-bin]# ls -la /usr/src/php-5.2.13/sapi/litespeed/php
ls: /usr/src/php-5.2.13/sapi/litespeed/php: No such file or directory
[root@server fcgi-bin]# ls -la /usr/src/php-5.2.13/sapi/litespeed/
total 144
drwxr-xr-x  2 root root  4096 Feb 23 11:06 .
drwxr-xr-x 23 root root  4096 Jun  2 11:14 ..
-rw-r--r--  1 root root  1474 Aug  7  2008 config.m4
-rw-r--r--  1 root root    22 Aug  5  2008 CREDITS
-rw-r--r--  1 root root  5748 Aug  5  2008 lsapidef.h
-rw-r--r--  1 root root 61373 Jan 12 14:24 lsapilib.c
-rw-r--r--  1 root root 11038 Jan 12 14:24 lsapilib.h
-rw-r--r--  1 root root 26457 Feb 23 11:06 lsapi_main.c
-rw-r--r--  1 root root    81 Aug  5  2008 Makefile.frag
-rw-r--r--  1 root root  8856 Aug  5  2008 README
[root@server fcgi-bin]#
please help int this errors, as i know it's strange and need some one expert in that, but i need to learn, that's it.


thanks for any one would help me here.
 
Top