Re: Problems with chrooted Apache and PHP exec() function

2007-09-05 Thread Johan Linner
Stuart Henderson skrev: On 2007/09/05 17:57, Johan L wrote: We are trying to get the PHP exec() function to work in a chrooted Apache environment (4.1-stable MP ACPI enabled, PHP 5.1.6). could be wrong, but iirc it needs /bin/sh Yep, copy /bin/sh to /var/www/bin made it all work. Now both P

Re: Problems with chrooted Apache and PHP exec() function

2007-09-05 Thread Karsten McMinn
On 9/5/07, Otto Moerbeek <[EMAIL PROTECTED]> wrote: > On Wed, 5 Sep 2007, Johan L wrote: > > > > Any suggestion on how to solve this (other than disabling chroot of > > course...)? > > > > /Johan > > depending on how you invoke the executable, you might need /bin/sh as > well in the chroot. Please

Re: Problems with chrooted Apache and PHP exec() function

2007-09-05 Thread Otto Moerbeek
On Wed, 5 Sep 2007, Johan L wrote: > Hi, > > We are trying to get the PHP exec() function to work in a chrooted Apache > environment (4.1-stable MP ACPI enabled, PHP 5.1.6). > > Even if using a static binary (for example date) in the chrooted directory, > exec just returns 127. > > Everything w

Problems with chrooted Apache and PHP exec() function

2007-09-05 Thread Johan L
Hi, We are trying to get the PHP exec() function to work in a chrooted Apache environment (4.1-stable MP ACPI enabled, PHP 5.1.6). Even if using a static binary (for example date) in the chrooted directory, exec just returns 127. Everything works fine when running chroot from the command li