Re: ping from chrooted httpd fails

2012-03-03 Thread fRANz
On Sat, Mar 3, 2012 at 10:20 AM, Richard Toohey wrote: > Have you got /bin/sh (off the top of my head) in the chroot bin directory? Obviously no :-) > I think PHP's exec tries to find that. You're right: now works perfectly! > The bit about error 127 and /bin/sh, not the guy who says just ski

Re: ping from chrooted httpd fails

2012-03-03 Thread Richard Toohey
On 3/03/2012, at 9:38 PM, fRANz wrote: > Hi, > I tried to make ping working inside httpd chroot from php script. > Without chroot, ping works fine. > I don't know what I miss in this configuration: > > # uname -a > OpenBSD d7 5.0 GENERIC#59 i386 > > # cat /etc/rc.conf | grep httpd > # use -u to di

ping from chrooted httpd fails

2012-03-03 Thread fRANz
Hi, I tried to make ping working inside httpd chroot from php script. Without chroot, ping works fine. I don't know what I miss in this configuration: # uname -a OpenBSD d7 5.0 GENERIC#59 i386 # cat /etc/rc.conf | grep httpd # use -u to disable chroot, see httpd(8) httpd_flags="-DSSL" # for n