using the full pathname of the uptime binary should work.

although, there are issues on some servers that user
'nobody' (a common owner for apache) cannot get 'uptime'
information... so even if you get uptime to work correctly,
beware that it may return bogus data.

> -----Original Message-----
> From: Ryan [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 01, 2001 8:44 PM
> Subject: [PHP] apache+php chroot
> 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
> and /usr/serv/apache/usr/etc/shells is setup correctly.  Would there be 
> something that im missing? Im frustruated right now..
> Its something to do with the chroot env.  What am i missing??
> Everything else seems to work fine if theres any more info you need me to 
> give let me know.
> thanks
> Ryan

PHP General Mailing List (
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