Bug#227232: apache: Overwrites own modules.conf on upgrade
Package: apache
Version: 1.3.29.0.1-3
Severity: critical
Justification: causes serious data loss
(I consider by home-made configuration also data - webserver will not
run without; and without backups I wouldn't have been able to recover
per module the reasons why I enabled/disabled that module)
I have a very customized apache configuration because I run a lot of
different things via apache.
Amongst others, config files were already split up. For example, I had
moved all LoadModules line to a file called /etc/apache/modules.conf
After upgrade to this version, the postinst failed, because apache
failed to start because some modules I enabled via modules.conf were
missing. It turned out, that modules.conf was overwritten by some
apache-modules (or such) script. There were quite some things that
looked like backups, but none contained the old version (I grepped).
modules.conf.old was the same modules.conf (I ran postinst multiple
times).
I'm now going to clean up the mess and restore config from backup, and I
will check out the postinst afterwards, if I find more problems, or a
patch for this, I will add to this report and/or open another one.
Above this, why modules-config? You cannot add comments next to the
loadmodule line like this?!
apache2's approach of a mods-available, and mods-enabled containing
symlinks to the former, MUCH cleaner, and easier, and more
straightforward, and non-causing-data-loss! And, it's more consitent
within Debian
--Jeroen
(apologies for my insecure wordings, my mood is currently a bit... you
can guess)
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: None of your business
Locale: LANG=nl_NL.ISO-8859-1, LC_CTYPE=nl_NL.ISO-8859-1
Versions of packages apache depends on:
ii apache-common 1.3.29.0.1-3 Support files for all Apache webse
ii debconf 1.3.22 Debian configuration management sy
ii dpkg 1.10.18 Package maintenance system for Deb
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libdb4.1 4.1.25-10 Berkeley v4.1 Database Libraries [
ii libexpat1 1.95.6-6 XML parsing C library - runtime li
ii libmagic1 4.06-2 File type determination library us
ii libpam0g 0.76-14.1 Pluggable Authentication Modules l
ii logrotate 3.6.5-2 Log rotation utility
ii mime-support 3.23-1 MIME files 'mime.types' & 'mailcap
ii perl [perl5] 5.8.2-2 Larry Wall's Practical Extraction
-- debconf information:
apache/server-name: wolffelaar.nl
apache/document-root: /var/www
apache/server-port: 80
* apache/enable-suexec: false
apache/init: true
apache/server-admin: webmaster@wolffelaar.nl
Reply to: