[horde] Horde logging. Syslog options
Simon Brereton
simon.brereton at buongiorno.com
Thu Sep 29 15:24:59 UTC 2011
> -----Original Message-----
> From: horde-bounces at lists.horde.org [mailto:horde-
> bounces at lists.horde.org] On Behalf Of Vilius Šumskas
> Sveiki,
>
> Thursday, September 29, 2011, 12:29:07 AM, you wrote:
>
> >> This is almost certainly a filesystem permsissions, or webserver
> >> configuration issue. If you are *sure* that the directory/file
> >> permissions are ok, then check for server restrictions like
> >> open_basedir or similar. You can also try a path in the same
> >> directory as the apache log and see if that helps.
>
> > When you write the emails it's like a veil lifting from my eyes -
> and
> > I go aha, that'll work! Only it doesn't..
>
> > Horde_Log_Handler_Stream: "/var/log/apache2/horde/horde4.log"
> cannot be opened with mode "a+"
>
>
> > Vilius - changing it to /tmp/horde4.log does work! :) Even the
> > sync.log is filling up (another thread brewing there).
>
> > Is there something I can change to allow it to log /var/log/horde/?
>
> At first you need to know what user your Apache/PHP runs on. At
> least here, under RedHat it is "apache". Note that usually
> Apache logs
> itself are written under different user - "root". Check the user
> of /var/log/php.log if you have
> one to write global PHP errors to. Also check "ps aux |grep httpd"
> for the user. If this doesn't help, check your distribution
> manual or write to their mailing list. When you know a user it's
> just a matter of chown 'user' /var/log/horde (or chgrp).
>
>
> If this still doesn't work then as Michael said it is server
> restrictions in effect.
Gah!
Apache is running with user www-data..
mail:~# ps aux |grep apache
root 19179 0.0 1.1 386952 23756 ? Ss 15:30 0:00 /usr/sbin/apache2 -k start
www-data 19186 0.0 2.3 418616 46556 ? S 15:30 0:00 /usr/sbin/apache2 -k start
So, I changed the owner and permissions
mail:~# ls /var/log/horde/horde4.log
-rwxrw---- 1 www-data www-data 1.2K Sep 29 15:33 /var/log/horde/horde4.log
And still it won't log there.
I can't find anything about open_basedir that would suggest it's the problem.
mail:~# grep -ir open_basedir /var/log/apache2/*
mail:~# grep -ir open_basedir /etc/apache2/*
mail:~# grep -ir open_basedir /etc/php5/*
/etc/php5/apache2/php.ini:; open_basedir, if set, limits all file operations to the defined directory
/etc/php5/apache2/php.ini:;open_basedir =
/etc/php5/cgi/php.ini:; open_basedir, if set, limits all file operations to the defined directory
/etc/php5/cgi/php.ini:;open_basedir =
/etc/php5/cli/php.ini:; open_basedir, if set, limits all file operations to the defined directory
/etc/php5/cli/php.ini:;open_basedir =
There's no php.log (although I suppose I can turn that on somehow). This is Debian squeeze - anyone have any ideas? Would a symlink from /tmp/horde4.log to /var/log/horde/horde4.log work?
Simon
More information about the horde
mailing list