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

Bug#235976: marked as done (apache: Apache overwrites local configuration)

Your message dated Sun, 07 Mar 2004 08:32:06 -0500
with message-id <E1AzyNy-0001rh-00@newraff.debian.org>
and subject line Bug#235976: fixed in apache
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 3 Mar 2004 15:39:19 +0000
>From allard@passoa.byte.nl Wed Mar 03 07:39:19 2004
Return-path: <allard@passoa.byte.nl>
Received: from baco.byte.nl (passoa.byte.nl) [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AyYSt-00037Y-00; Wed, 03 Mar 2004 07:39:19 -0800
Received: from localhost (localhost [])
	by passoa.byte.nl (Postfix) with ESMTP id 6F5733177FD;
	Wed,  3 Mar 2004 16:38:43 +0100 (CET)
Received: by passoa.byte.nl (Postfix, from userid 500)
	id B32F63146D4; Wed,  3 Mar 2004 16:38:32 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Allard Hoeve <allard@byte.nl>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apache: Apache overwrites local configuration
X-Mailer: reportbug 2.48
Date: Wed, 03 Mar 2004 16:38:32 +0100
Message-Id: <[🔎] 20040303153832.B32F63146D4@passoa.byte.nl>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_01 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 

Package: apache
Severity: important

Hello All,

Whenever apache gets installed, reinstalled, upgraded or reconfigured, it overwrites my configuration in /etc/apache.

Perhaps my setup is a bit exotic, so I will explain the situation:

I have several Apache servers that have mostly identical configurations. To reduce redundancy, we placed the configuration
files on an NFS share. The local directory /etc/apache/ now contains a local.conf that contains any configuration directives
that should remain local and a symlink from /etc/shared/apache/httpd.conf to /etc/apache/httpd.conf. The shared
configuration file includes the local.conf file and all is well.

That is, all is well until the apache postinst scripts get called.

Through some magic, the symlink in /etc/apache gets removed and replaced by a new httpd.conf plaintext file that contains
the exact content as my /etc/shared/apache/httpd.conf. Needless to say: this is bad news for me. Changes made in the central
httpd.conf are no longer propagated to all servers.

One example of code, possibly responsible for removing the symbolic link, is from postinst.common:

    if [ ! "`grep "^PidFile /var/run/$pkg.pid" /etc/$pkg/httpd.conf`" ] ; then
        cat /etc/$pkg/httpd.conf |  perl -pe \
        "s,^PidFile.*,PidFile /var/run/$pkg.pid,;" > /etc/$pkg/httpd.conf.dpkg-inst.$$
        mv /etc/$pkg/httpd.conf.dpkg-inst.$$ /etc/$pkg/httpd.conf

This raises two questions:

a) Should the apache postinst scripts overwrite a configuration file
   with a new file with identical content?
b) Should the apache postinst scripts remove a symlink and replace it
   with a plaintext file?

I think that according to section 10.7.3 of the Debian Policy Manual, a) could be argued for but b) can not.

I'm looking forward to hearing your thoughts about this.


Allard Hoeve

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.25

Versions of packages apache depends on:
ii  apache-common    Support files for all Apache webse
ii  debconf                   1.4.11       Debian configuration management sy
ii  dpkg                      1.10.18      Package maintenance system for Deb
ii  libc6                     2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libdb4.2                  4.2.52-8     Berkeley v4.2 Database Libraries [
ii  libexpat1                 1.95.6-6     XML parsing C library - runtime li
ii  libmagic1                 4.07-2       File type determination library us
ii  libpam0g                  0.76-15      Pluggable Authentication Modules l
ii  logrotate                 3.6.5-2      Log rotation utility
ii  mime-support              3.25-1       MIME files 'mime.types' & 'mailcap
ii  perl [perl5]              5.8.3-2      Larry Wall's Practical Extraction 

Received: (at 235976-close) by bugs.debian.org; 7 Mar 2004 13:38:20 +0000
>From katie@ftp-master.debian.org Sun Mar 07 05:38:20 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AzyU0-0001yw-00; Sun, 07 Mar 2004 05:38:20 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1AzyNy-0001rh-00; Sun, 07 Mar 2004 08:32:06 -0500
From: fabbione@fabbione.net (Fabio M. Di Nitto)
To: 235976-close@bugs.debian.org
X-Katie: $Revision: 1.44 $
Subject: Bug#235976: fixed in apache
Message-Id: <E1AzyNy-0001rh-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 07 Mar 2004 08:32:06 -0500
Delivered-To: 235976-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_05 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=no 

Source: apache

We believe that the bug you reported is fixed in the latest version of
apache, which is due to be installed in the Debian FTP archive:

  to pool/main/a/apache/apache-common_1.
  to pool/main/a/apache/apache-dbg_1.
  to pool/main/a/apache/apache-dev_1.
  to pool/main/a/apache/apache-doc_1.
  to pool/main/a/apache/apache-perl_1.
  to pool/main/a/apache/apache-ssl_1.
  to pool/main/a/apache/apache-utils_1.
  to pool/main/a/apache/apache_1.
  to pool/main/a/apache/apache_1.
  to pool/main/a/apache/apache_1.
  to pool/main/a/apache/apache_1.
  to pool/main/a/apache/libapache-mod-perl_1.29.0.2-1_i386.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 235976@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Fabio M. Di Nitto <fabbione@fabbione.net> (supplier of updated apache package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Sun, 07 Mar 2004 13:15:09 +0100
Source: apache
Binary: apache-dev apache-common apache-doc apache-utils apache apache-dbg apache-perl libapache-mod-perl apache-ssl
Architecture: source i386 all
Distribution: unstable
Urgency: low
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Fabio M. Di Nitto <fabbione@fabbione.net>
 apache     - Versatile, high-performance HTTP server
 apache-common - Support files for all Apache webservers
 apache-dbg - Apache webservers (debugging versions)
 apache-dev - Apache webserver development kit
 apache-doc - Apache webserver docs
 apache-perl - Versatile, high-performance HTTP server with Perl support
 apache-ssl - Versatile, high-performance HTTP server with SSL support
 apache-utils - Utility programs for webservers
 libapache-mod-perl - Integration of perl with the Apache web server
Closes: 45268 219378 226131 226833 227232 228355 229000 229653 230718 230991 231387 232630 232668 233097 233694 234091 234650 234706 234731 235976
 apache ( unstable; urgency=low
   * (Fabio M. Di Nitto)
     - Introduced better checks for values returned by debconf frontens
       and rollback to defaults if empty (Closes: #234091)
     - Introduced ucf to preserve users configurations across upgrades
       (Closes: #227232, #235976, #234650)
     - Fixed several overlapping problems with postrm scripts
       (Closes: #232668)
     - New apache-ssl upstream [CAN-2004-0009]
       (Closes: #232630)
     - Make modules-config less paranoid about .so/.info relationship
       (Closes: #226833, #234706)
     - Updated default apache-ssl conf for new SSLNoV2 directive
     - Rebuilt and enforced dependencies against perl 5.8.3
       (Closes: #231387)
     - Switched logrotate scripts to use invoke-rc.d and Co.
       (Closes: #234731)
     - Added (for real this time) mod-perl r->dir_config('foo') patch. Thanks Don.
       (Closes: #226131)
     - Modified init scripts and postinst to handle in a better way the start
       at boot. (Closes: #228355)
     - Added link to netcraft.com in the default placeholder and a few lines
       in the README.Debian
     - Modified init scripts to clean mod-bandwidth/link/ after each stop
       (Closes: #229000)
     - More init scripts cleanup. It shouldn't leak environment information
       (Closes: #229653, #230991)
     - Added check for MIMEMagicFile to suggested corrections
       (Closes: #230718)
     - Added da.po thanks to Claus Hindsgaul (Closes: #233097)
   * (Tollef Fog Heen)
     - Stop linking against so many DB libs. (Closes: #45268)
   * (Matthew Wilcox)
     - Ship rotatelogs in apache-utils. (Closes: #219378)
     - Add mod_autoindex patch. (Closes: #233694)
 2c2f436049a261d425f7a33ade8e1c32 1085 web optional apache_1.
 cc7d80570bfce92a4743c297a1fd1004 3071092 web optional apache_1.
 685c35aae699c0e19958736a9c3bce60 374701 web optional apache_1.
 cf14ac454403e89dfcde8d6dd2b535cc 1158450 doc optional apache-doc_1.
 183c94fecba25014692654e26bf04e59 367170 web optional apache_1.
 989ca889e96e620696653bbce2a360fb 478130 web optional apache-ssl_1.
 74e6a958e9609ca633182e99b50ddbe7 485688 web extra apache-perl_1.
 b3620575930b34b63667c0f958f880e9 316708 devel extra apache-dev_1.
 3987b0ca06198160e430b1bef96895e1 9074574 devel extra apache-dbg_1.
 fe4db14d1ec9434af7f92a819f5cd19d 816424 web optional apache-common_1.
 29bf856f65bb50e18d5d6151a852088c 257794 web optional apache-utils_1.
 6a272db812c36314cee3cdb14fd8a4b0 480216 web optional libapache-mod-perl_1.29.0.2-1_i386.deb

Version: GnuPG v1.2.4 (GNU/Linux)


Reply to: