On Sun, Jul 01, 2001 at 07:44:19PM -0500, 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
> 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??
is there a proc filesystem somewhere in your chroot? i have never
tried chrooting apache+php, but I know that uptime, at least on
linux, reads from proc/uptime and proc/loadavg. If you haven't
already, try mounting proc in wherever your chrooted '/' is.
good luck...
--
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]