Re: apache+php chroot
| From: | billt | Date: | Mon, 02 Jul 2001 01:17:32 +0000 |
| Subject: | Re: apache+php chroot | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55768@lists.php.net to get a copy of this message | ||
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...