[horde] Logging to file not working

ANANT S ATHAVALE asa at isac.gov.in
Fri Jan 30 10:07:18 UTC 2015


----- Message from Steffen <skhorde at smail.inf.fh-bonn-rhein-sieg.de> ---------
    Date: Fri, 30 Jan 2015 11:05:33 +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:
>> ----- 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
> -- 
> 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> -----

deleted the file.  horde.log file not getting created.

SELinux is already disabled.

-- 
      सादर धन्यवाद/ Thanks & Regards
           अनंत / Anant
------------------------------------------------------------------------------
Confidentiality Notice: This e-mail message, including any attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
------------------------------------------------------------------------------



More information about the horde mailing list