chroot httpd with perl support

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

chroot httpd with perl support

irix
Как подключить к штатному апачу в чруте по человечески поддержку пёрла?
чтобы тело-движений поменьше делать


Reply | Threaded
Open this post in threaded view
|

Re: chroot httpd with perl support

Alexander Sheiko
Hello irix,

Friday, November 23, 2007, 5:11:40 AM, you wrote:

i> Как подключить к штатному апачу в чруте по человечески поддержку пёрла?
i> чтобы тело-движений поменьше делать

mkdir -p /var/www/usr/bin
mkdir -p /var/www/usr/lib
mkdir -p /var/www/usr/libexec
mkdir -p /var/www/usr/libdata
mkdir -p /var/www/usr/local/bin
mkdir -p /var/www/usr/local/include
mkdir -p /var/www/usr/local/lib
mkdir -p /var/www/usr/local/share
mkdir -p /var/www/usr/local/libdata

cp /usr/bin/perl /var/www/usr/bin/
cp /usr/bin/perl5.* /var/www/usr/bin/

cp -R /usr/local/libdata/perl5 /var/www/usr/local/libdata/
cp -R /usr/libdata/perl5 /var/www/usr/libdata/
for i in /var/www/usr/bin/*; do ldd $i; done | grep 'lib' | cut -c 41-80 | sort -n | uniq > /tmp/libs
for i in `cat /tmp/libs`; do cp $i /var/www$i; done

mkdir -p /var/www/var/run
mkdir -p /var/www/sbin/
cp /sbin/ldconfig /var/www/sbin/
cp /var/run/ld.so.hints /var/www/var/run/

cd /var/www
chroot /var/www sh
/sbin/ldconfig -m /usr/local/lib
/sbin/ldconfig -m /usr/lib
exit

--
Best regards,
 Alexander                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re[2]: chroot httpd with perl support

irix
Hello Alexander,

Friday, November 23, 2007, 5:33:11 AM, you wrote:

AS> Hello irix,

AS> Friday, November 23, 2007, 5:11:40 AM, you wrote:

i>> Как подключить к штатному апачу в чруте по человечески поддержку пёрла?
i>> чтобы тело-движений поменьше делать

AS> mkdir -p /var/www/usr/bin
AS> mkdir -p /var/www/usr/lib
AS> mkdir -p /var/www/usr/libexec
AS> mkdir -p /var/www/usr/libdata
AS> mkdir -p /var/www/usr/local/bin
AS> mkdir -p /var/www/usr/local/include
AS> mkdir -p /var/www/usr/local/lib
AS> mkdir -p /var/www/usr/local/share
AS> mkdir -p /var/www/usr/local/libdata

AS> cp /usr/bin/perl /var/www/usr/bin/
AS> cp /usr/bin/perl5.* /var/www/usr/bin/

AS> cp -R /usr/local/libdata/perl5 /var/www/usr/local/libdata/
AS> cp -R /usr/libdata/perl5 /var/www/usr/libdata/
AS> for i in /var/www/usr/bin/*; do ldd $i; done | grep 'lib' | cut
AS> -c 41-80 | sort -n | uniq > /tmp/libs
AS> for i in `cat /tmp/libs`; do cp $i /var/www$i; done

AS> mkdir -p /var/www/var/run
AS> mkdir -p /var/www/sbin/
AS> cp /sbin/ldconfig /var/www/sbin/
AS> cp /var/run/ld.so.hints /var/www/var/run/

AS> cd /var/www
AS> chroot /var/www sh
AS> /sbin/ldconfig -m /usr/local/lib
AS> /sbin/ldconfig -m /usr/lib
AS> exit


А попроще что-нибудь вроде mod_perl ?

--
Best regards,
 irix                            mailto:[hidden email]