Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PEAR] pear log can't create a log file
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

Report this thread to moderator Post Follow-up to this message
Old Post
Klaus Guenther
08-23-04 08:56 AM


Re: [PEAR] pear log can't create a log file
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

Report this thread to moderator Post Follow-up to this message
Old Post
Joseph
08-23-04 08:59 PM


Re: [PEAR] pear log can't create a log file
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

Report this thread to moderator Post Follow-up to this message
Old Post
Scott Mattocks
08-23-04 08:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:43 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.