On Sunday 08 March 2009 08.13.58 you wrote:
> I compile some c code and link it statically. It's the simple 'hello
> world' program. I name it 'hello' and put it in /var/www/test/
>
> I then try to execute it through php using the shell_exec function
> like so:
>
> $output = shell_exec("/var/www/test/hello");
> echo $output;
>
> I get no output at all. Same program runs fine via shell_exec on
> other Apache PHP setups. Being this is statically linked and ldd
> shows no shared libs (the chroot should not impact it, right?) and
> the php.ini files does not exclude shell_exec from running... what
> else might be wrong?

Do you have a shell executable in your chroot?

Daniel

-- 
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1

Reply via email to