Claudio Prono wrote:
Il 14/06/2011 13.05, Per Jessen ha scritto:
Claudio Prono wrote:
Hello all,
I have encountered an anomaly on apache2 on OpenSuSE 11.4 64 bit. All the logs file are written as root in /var/log/apache, but the configuration is the same as OpenSuSE 11.3.... what is changed? Has anything changed in this respect? I have a webserver running on 11.1, logs are being written as root.
And another thing strange is another system, with OpenSuSE 11.3, it writes some logs as root, some other as wwwrun.www. Apache is running as wwwrun.www.... WHich logs are being written as wwwrun ?
I have noticied now a strangeness.... all files with .log extension are wwwrun.www, all files with _log extension are root.root.... logrotate create empty files with wwwrun.www, so apache write with the same permissions... is it right?
logrotate is configured with userif+group for creating a new logfile when the old one is archived. If logrotate creates new logfiles with wwwrun.www, apache will write to them without changing ownership. /Per -- Per Jessen, Zürich (23.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org