From: Peter Phillips [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] PHP Uptime error
>
> Thanks for everyone's help, it was the permissions on /proc that were
> causing the problems. I changed it to 755 and everything is working
> perfectly.
>
> Thanks again.
Thanks for everyone's help, it was the permissions on /proc that were
causing the problems. I changed it to 755 and everything is working
perfectly.
Thanks again.
--
"Keyboard not detected, press F1 to continue..."
""Peter Phillips"" <[EMAIL PROTECTED]> wrote in message
9h9e9k$dti$[EMAIL PROTE
On Tue, Jun 26, 2001 at 05:40:07PM +1000, Peter Phillips wrote:
> Thanks for your help, this is what I get when I try a uptime while logged in
> as nobody.
>
>
> host:/# su nobody
> host:/$ uptime
> Error: /proc must be mounted
>
ect: Re: [PHP] PHP Uptime error
>
>
> It sounds like it might be the permissions on /proc itself.
>
> What does 'ls -ld /proc' say?
>
> - Tim
> http://www.phptemplates.org
>
> - Original Message -----
> From: "Peter Phillips" <[EMAIL
It sounds like it might be the permissions on /proc itself.
What does 'ls -ld /proc' say?
- Tim
http://www.phptemplates.org
- Original Message -
From: "Peter Phillips" <[EMAIL PROTECTED]>
Subject: Re: [PHP] PHP Uptime error
> Thanks for your help, th
Thanks for your help, this is what I get when I try a uptime while logged in
as nobody.
host:/# su nobody
host:/$ uptime
Error: /proc must be mounted
To mount /proc at boot you need an /etc/fstab line like:
/proc /proc p
Check the permissions on the files in /proc, which is where uptime gets its
info from, most likely.
You could probably even read the pseudo-file '/proc/loadavg' as 'nobody'
directly from PHP given the appropriate file permissions.
- Tim
http://www.phptemplates.org
> Richard Lynch's advice wa
sage -
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 8:34 AM
Subject: Re: [PHP] PHP Uptime error
> > I have a PHP script with the following code in it;
> >
> > $uptime = passthru ("/usr/bin/uptime
> I have a PHP script with the following code in it;
>
> $uptime = passthru ("/usr/bin/uptime");
>
> but when I load the PHP page I get the following;
>
> 8:26pm up 0 min, 0 users, load average: 0.00, 0.00, 0.00
>
> which is wrong (I have checked the uptime via telnet). Can anybody please
> help
9 matches
Mail list logo