On Tue, Jul 09, 2013 at 09:18:40PM +0300, ?zg?r Kazan??? wrote:
> It's the base' perl,
> 
> # perl -v
> This is perl 5, version 12, subversion 2 (v5.12.2 (*)) built for
> amd64-openbsd
> (with 10 registered patches, see perl -V for more detail)
> 
> And using nginx with chroot-disabled, (-u) didn't help neither.
> 
> "If you just want to see if nginx works try /var/www/cgi-bin/test-cgi
> which uses /bin/sh, chmod it appropriately and copy /bin/sh to
> /var/www/bin/sh (/bin/sh *is* statically linked)"
> 
> Tried this, same error: "502 Bad Gateway"

please try this:
sudo chroot -g www -u www /var/www/ cgi-bin/test.cgi
and/or this:
sudo chroot -g www -u www /var/www/ cgi-bin/test-cgi

I'm pretty sure the test.cgi test will print "Abort trap", you
need to copy the dynamic libs into the chroot, ldd will tell
you which.

-- 
I'm not entirely sure you are real.

Reply via email to