For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2004 > Re: [PEAR] pear log can't create a log file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] pear log can't create a log file
Klaus Guenther

2004-08-23, 3:56 am

Joseph Yik Chi Chu wrote:

>Hi,
>I am using horde as my webmail.
>Horde use php/pear log to create log file in /var/log/
>I had installed all required pear package. I run the
>test.php in horde and it shows no error.
>
>But when I try use the webmail. It show the error
>massage below
>
>Warning: touch(): Unable to create file
>/var/log/horde.log because Permission denied in
>/usr/share/pear/Log/file.php on line 119
>
>Warning: chmod(): No such file or directory in
>/usr/share/pear/Log/file.php on line 120
>
>i am not sure this is the problem of horde or pear ¡K.
>
>


No, it's a permissions problem. Try creating the file using "touch" from
the shell and then giving the webserver user read/write permissions for it.

Klaus
Joseph

2004-08-23, 3:59 pm

but how can i let pear module to create the log file itself?
since i guess the module suppose it can creat the file itself .......

"Klaus Guenther" <klaus@capitalfocus.org> wrote in message
news:40D92A20.9020203@capitalfocus.org...
> Joseph Yik Chi Chu wrote:
>
>
> No, it's a permissions problem. Try creating the file using "touch" from
> the shell and then giving the webserver user read/write permissions for

it.
>
> Klaus

Scott Mattocks

2004-08-23, 3:59 pm

Joseph wrote:

> but how can i let pear module to create the log file itself?
> since i guess the module suppose it can creat the file itself .......


You need to give the webserver permission to write in the directory that
it wants to create the file. (/var/log/)

Scott Mattocks
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com