[horde] Logging to file not working

Steffen skhorde at smail.inf.fh-bonn-rhein-sieg.de
Fri Jan 30 10:05:33 UTC 2015


On Fri, 30 Jan 2015, ANANT S ATHAVALE wrote:
> ----- Message from Steffen <skhorde at smail.inf.fh-bonn-rhein-sieg.de> 
> ---------
>  Date: Fri, 30 Jan 2015 10:45:15 +0100 (CET)
>  From: Steffen <skhorde at smail.inf.fh-bonn-rhein-sieg.de>
> Subject: Re: [horde] Logging to file not working
>    To: horde at lists.horde.org
>    Cc: horde at lists.horde.org
>
>
>> On Fri, 30 Jan 2015, ANANT S ATHAVALE wrote:
>>>> Quoting ANANT S ATHAVALE <asa at isac.gov.in>:
>>>> 
>>>>> Following is the extract of horde/config/conf.php
>>>>> 
>>>>> $conf['log']['priority'] = 'INFO';
>> 
>> Lower the limit to NOTICE or DEBUG for testing purpose
>> 
>>>>> $conf['log']['ident'] = 'HORDE';
>>>>> $conf['log']['time_format'] = 'M d Y H:i:s';
>>>>> $conf['log']['name'] = '/tmp/horde.log';
>>>>> $conf['log']['params']['append'] = true;
>>>>> $conf['log']['params']['format'] = 'default';
>>>>> $conf['log']['type'] = 'file';
>>>>> $conf['log']['enabled'] = true;
>>>>> $conf['log_accesskeys'] = false;
>>>>> 
>>>>> 
>>>>> with these settings, /tmp/horde.log is not getting updated.  Is any PHP 
>>>>> pear module I have missed to install?
>>>> 
>>>> Your PHP process has write access to that file, correct?
>>> 
>>> Yes, PHP has write access to that file.
>> 
>> remove or rename /tmp/horde.log and see, if it gets re-created.
>> /tmp has mode 1777 ?
>> 
>> -- 
>> Steffen
>> -- 
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
> ----- End message from Steffen <skhorde at smail.inf.fh-bonn-rhein-sieg.de> 
> -----
>
> ls -ld /tmp
>
> drwxrwxrwt. 15 root root 4096 Jan 30 14:58 /tmp
>
> ls -l /tmp/horde.log
> -rw-r--r-- 1 apache apache 0 Jan 29 15:56 /tmp/horde.log
>
> Actually, I touched this file and changed ownership as logging was not 
> happening.

Therefore I suggested to let Horde re-create the file on its own. Your 
/tmp should allow it and then you see what Apache/PHP/Horde like.

Oh: Something is like SELinux / AppArmor active ;-)

> Tried changing to DEBUG also, but nothing is being written.
>
>
>
>

-- 
Steffen


More information about the horde mailing list