[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RE: Re: Real time log monitoring scrip



On Thu Sep 25, 2003 - 10:04:28AM, Jon wrote:

[...]
> I created this script and set permissions to:
> 
> -rwxrwxrwx    1 httpd    httpd         695 Sep 25 09:56 logs.php
> 
> I get this in my access error logs:
> 
> [Thu Sep 25 09:57:43 2003] [error] PHP Warning:
> fopen("/var/log/maillog", "r") - Permission denied in
> /home/sites/home/users/admin/web/logs.php on line 7
> [Thu Sep 25 09:57:43 2003] [error] PHP Warning:  Supplied
> argument is not a valid File-Handle resource in
> /home/sites/home/users/admin/web/logs.php on line 8
> 
> The firsat line seems to dislike the 'httpd' user and not sure
> about the second line.... can you help. Thanks for the
> contribution.

You know, reading your own script would help. PHP complains
about the permissions of /var/log/maillog not
/home/sites/home/users/admin/web/logs.php - user httpd is not allowed to
read the maillog.

MfG
Andreas Banze

--
There are two means of refuge from the miseries of life: music and cats.
					-- Albert Schweitzer