Hi Ryan!
On Sun, 01 Jul 2001, Ryan wrote:

> I have chrooted apache+php but am having simple problems like not being
> able to exec uptime.
> uptime has been moved to /usr/serv/apache/usr/bin/uptime..
> Well anyways heres my lil php line im tring to get running
> <?php passthru ( "uptime" ); ?>
> 
> I get no errors from php, just doesnt show anything..  I realize it
> needs a shell to execute so /usr/serv/apache/bin/bash
I think the passthru uses popen() which in turn spawns a shell,
and this is /bin/sh and not /bin/bash
you need either to make a symlink to bash or to rename bash to sh.

> and /usr/serv/apache/usr/etc/shells is setup correctly.  Would there be
AFAIK shells is checked by programs dealing with pw records, I don't think
it has anything to do w/ that. Better SHELL environment variable.

> something that im missing? Im frustruated right now..
> Its something to do with the chroot env.  What am i missing??
try  :
    cd /usr/serv/apache/bin
    ln -s bash sh
   (or)
   cp bash sh

 and tell us if it works.

> Everything else seems to work fine if theres any more info you need me
> to give let me know.
> 
> 
> thanks
> Ryan
> [EMAIL PROTECTED]
> 
-- teodor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to