[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#473982: apache2-mpm-prefork: Logrotate complains about APACHE_PID_FILE



Package: apache2-mpm-prefork
Version: 2.2.8-1
Severity: normal


The log rotation does'nt go well. apache2
continued to write in /var/log/apache2/error.log.1 until I
restart it.
I have received this mail from root :

> From root@arachne3.grenoble.iufm.fr Tue Mar 25 16:18:48 2008
> Envelope-to: root@arachne3.grenoble.iufm.fr
> Delivery-date: Tue, 25 Mar 2008 16:18:48 +0100
> From: Anacron <root@arachne3.grenoble.iufm.fr>
> To: root@arachne3.grenoble.iufm.fr
> Subject: Anacron job 'cron.daily' on arachne3
> Date: Tue, 25 Mar 2008 16:18:48 +0100

> /etc/cron.daily/logrotate:
> ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
> error: error running shared postrotate script for /var/log/apache2/*.log 
> run-parts: /etc/cron.daily/logrotate exited with return code 1

I have done what is suggested i.e. edit /etc/apache2/envvars adding

APACHE_PID_FILE=/var/run/apache2.pid
export APACHE_PID_FILE

I must wait now a week for the change to take an effect.

-- Package-specific info:
List of enabled modules from 'apache2 -M':
  alias auth_basic authn_file authz_default authz_groupfile
  authz_host authz_user autoindex cgi dir env mime negotiation php5
  setenvif status

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apache2-mpm-prefork depends on:
ii  apache2.2-common           2.2.8-1       Next generation, scalable, extenda
ii  libapr1                    1.2.11-1      The Apache Portable Runtime Librar
ii  libaprutil1                1.2.12+dfsg-3 The Apache Portable Runtime Utilit
ii  libc6                      2.7-6         GNU C Library: Shared libraries
ii  libpcre3                   7.4-1+lenny1  Perl 5 Compatible Regular Expressi

apache2-mpm-prefork recommends no packages.

-- no debconf information



Reply to: