At 02:45 AM 3/9/2007 +0800, First Last wrote:
I have apache 1.3 setup to execute cgis (perl).

But I'm having a problem getting the cgis
to execute while apache is chrooted. If
I disable chroot (httpd -d) the cgis exexute
just fine, but they won't run while
chrooted (500 internal server error).

You need all your executables IN the chroot, ..

But, if I follow the openbsd faq to see
what dependencies my cgi needs to run in
the chrooted environment I get this:

ldd hellowworld.cgi
helloworld.cgi:
ldd: helloworld: not an ELF executable

a cgi is not executable. If you look at the top of the file, you will see the executable, e.g.

!#/usr/bin/perl

You need to run ldd on the *executable*, not the cgi. Also, if you are running Perl, you will need to ensure that all modules are also in the chroot.

        Lee

Reply via email to