Re: pear log can't create a log file
| From: | Klaus Guenther | Date: | Wed, 23 Jun 2004 06:58:40 +0000 |
| Subject: | Re: pear log can't create a log file | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14224@lists.php.net to get a copy of this message | ||
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