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

Bug#711925: apache2-doc's config file breaks apache itself



severity 711925 important
thanks

Playing severity ping pong does not exactly convince me to prioritize
your issue.

> THere have been several reports, mine, another in the bug report,
> that confirm that mods get disabled by upgrading.

I did not say your issue does not exist. But it does not happen under
normal circumstances. In fact I am not even able to reproduce it, and
that's all but a serious issue:


root@build:/# dpkg -l | grep "apache2"
ii  apache2                         2.2.22-13                 amd64
   Apache HTTP Server metapackage
ii  apache2-mpm-prefork             2.2.22-13                 amd64
   Apache HTTP Server - traditional non-threaded model
ii  apache2-utils                   2.2.22-13                 amd64
   utility programs for webservers
ii  apache2.2-bin                   2.2.22-13                 amd64
   Apache HTTP Server common binary files
ii  apache2.2-common                2.2.22-13                 amd64
   Apache HTTP Server common files
ii  libapache2-mod-php5             5.4.4-14+deb7u2           amd64
   server-side, HTML-embedded scripting language (Apache 2 module)
root@build:/# ls -l /etc/apache2/mods-enabled/
total 0
lrwxrwxrwx 1 root root 28 Jul 24 08:05 alias.conf ->
../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Jul 24 08:05 alias.load ->
../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Jul 24 08:05 auth_basic.load ->
../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Jul 24 08:05 authn_file.load ->
../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 Jul 24 08:05 authz_default.load ->
../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 Jul 24 08:05 authz_groupfile.load ->
../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 Jul 24 08:05 authz_host.load ->
../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Jul 24 08:05 authz_user.load ->
../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Jul 24 08:05 autoindex.conf ->
../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Jul 24 08:05 autoindex.load ->
../mods-available/autoindex.load
lrwxrwxrwx 1 root root 26 Jul 24 08:05 cgi.load ->
../mods-available/cgi.load
lrwxrwxrwx 1 root root 30 Jul 24 08:05 deflate.conf ->
../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Jul 24 08:05 deflate.load ->
../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Jul 24 08:05 dir.conf ->
../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Jul 24 08:05 dir.load ->
../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Jul 24 08:05 env.load ->
../mods-available/env.load
lrwxrwxrwx 1 root root 27 Jul 24 08:05 mime.conf ->
../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Jul 24 08:05 mime.load ->
../mods-available/mime.load
lrwxrwxrwx 1 root root 34 Jul 24 08:05 negotiation.conf ->
../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Jul 24 08:05 negotiation.load ->
../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 Jul 24 08:05 php5.conf ->
../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 Jul 24 08:05 php5.load ->
../mods-available/php5.load
lrwxrwxrwx 1 root root 33 Jul 24 08:05 reqtimeout.conf ->
../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 Jul 24 08:05 reqtimeout.load ->
../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 31 Jul 24 08:05 setenvif.conf ->
../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Jul 24 08:05 setenvif.load ->
../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 Jul 24 08:05 status.conf ->
../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Jul 24 08:05 status.load ->
../mods-available/status.load
lrwxrwxrwx 1 root root 32 Jul 24 08:05 unique_id.load ->
../mods-available/unique_id.load
root@build:/#
root@build:/# apt-get update ; apt-get install apache2
Ign file: sid Release.gpg
Get:1 file: sid Release [5.807 B]
Hit http://ftp.de.debian.org sid Release.gpg
Ign file: sid/main Translation-en_US
Ign file: sid/main Translation-en
Hit http://ftp.de.debian.org sid Release
Get:2 http://ftp.de.debian.org sid/main amd64 Packages/DiffIndex [7.876 B]
Get:3 http://ftp.de.debian.org sid/main Translation-en/DiffIndex [7.876 B]
Fetched 15,8 kB in 2s (7.625 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  apache2-mpm-prefork apache2.2-bin libcurl3-gnutls librtmp0 libssh2-1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-bin apache2-data apache2-mpm-prefork apache2.2-bin
libapache2-mod-php5 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
libbsd0 libedit2 libxml2 lsof php5-cli php5-common
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom
php-pear php5-user-cache
Recommended packages:
  php5-json
The following packages will be REMOVED:
  apache2.2-common
The following NEW packages will be installed:
  apache2-bin apache2-data libbsd0 libedit2 lsof
The following packages will be upgraded:
  apache2 apache2-mpm-prefork apache2.2-bin libapache2-mod-php5
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libxml2 php5-cli
php5-common
10 upgraded, 5 newly installed, 1 to remove and 123 not upgraded.
Need to get 8.735 kB of archives.
After this operation, 2.194 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.de.debian.org/debian/ sid/main libaprutil1-ldap amd64
1.5.2-1 [17,6 kB]
Get:2 http://ftp.de.debian.org/debian/ sid/main libaprutil1-dbd-sqlite3
amd64 1.5.2-1 [20,1 kB]
Get:3 http://ftp.de.debian.org/debian/ sid/main libaprutil1 amd64
1.5.2-1 [99,8 kB]
Get:4 http://ftp.de.debian.org/debian/ sid/main apache2.2-bin amd64
2.4.6-2 [1.428 B]
Get:5 http://ftp.de.debian.org/debian/ sid/main apache2-bin amd64
2.4.6-2 [964 kB]
Get:6 http://ftp.de.debian.org/debian/ sid/main apache2-data all 2.4.6-2
[154 kB]
Get:7 http://ftp.de.debian.org/debian/ sid/main apache2 amd64 2.4.6-2
[188 kB]
Get:8 http://ftp.de.debian.org/debian/ sid/main libapache2-mod-php5
amd64 5.5.1+dfsg-1 [2.805 kB]
Get:9 http://ftp.de.debian.org/debian/ sid/main apache2-mpm-prefork
amd64 2.4.6-2 [1.400 B]
Get:10 http://ftp.de.debian.org/debian/ sid/main libxml2 amd64
2.9.1+dfsg1-2 [911 kB]
Get:11 http://ftp.de.debian.org/debian/ sid/main libbsd0 amd64 0.6.0-1
[67,4 kB]
Get:12 http://ftp.de.debian.org/debian/ sid/main libedit2 amd64
2.11-20080614-6 [73,3 kB]
Get:13 http://ftp.de.debian.org/debian/ sid/main php5-cli amd64
5.5.1+dfsg-1 [2.703 kB]
Get:14 http://ftp.de.debian.org/debian/ sid/main lsof amd64 4.86+dfsg-1
[316 kB]
Get:15 http://ftp.de.debian.org/debian/ sid/main php5-common amd64
5.5.1+dfsg-1 [413 kB]
Fetched 8.735 kB in 5s (1.581 kB/s)
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 14170 files and directories currently installed.)
Preparing to replace libaprutil1-ldap 1.4.1-3 (using
.../libaprutil1-ldap_1.5.2-1_amd64.deb) ...
Unpacking replacement libaprutil1-ldap ...
Preparing to replace libaprutil1-dbd-sqlite3 1.4.1-3 (using
.../libaprutil1-dbd-sqlite3_1.5.2-1_amd64.deb) ...
Unpacking replacement libaprutil1-dbd-sqlite3 ...
Preparing to replace libaprutil1 1.4.1-3 (using
.../libaprutil1_1.5.2-1_amd64.deb) ...
Unpacking replacement libaprutil1 ...
Preparing to replace apache2.2-bin 2.2.22-13 (using
.../apache2.2-bin_2.4.6-2_amd64.deb) ...
Unpacking replacement apache2.2-bin ...
Can not write log, openpty() failed (/dev/pts not mounted?)
dpkg: apache2.2-common: dependency problems, but removing anyway as you
requested:
 libapache2-mod-php5 depends on apache2.2-common.
 apache2 depends on apache2.2-common (= 2.2.22-13); however:
  Package apache2.2-common is to be removed.
 apache2-mpm-prefork depends on apache2.2-common (= 2.2.22-13).

(Reading database ... 14091 files and directories currently installed.)
Removing apache2.2-common ...
Processing triggers for man-db ...
fopen: Permission denied
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package apache2-bin.
(Reading database ... 13771 files and directories currently installed.)
Unpacking apache2-bin (from .../apache2-bin_2.4.6-2_amd64.deb) ...
Replacing files in old package apache2-mpm-prefork ...
Selecting previously unselected package apache2-data.
Unpacking apache2-data (from .../apache2-data_2.4.6-2_all.deb) ...
Preparing to replace apache2 2.2.22-13 (using
.../apache2_2.4.6-2_amd64.deb) ...
Moving obsolete conffile /etc/apache2/mods-available/authz_default.load
out of the way...
Moving obsolete conffile /etc/apache2/mods-available/authn_default.load
out of the way...
Moving obsolete conffile /etc/apache2/mods-available/mem_cache.load out
of the way...
Moving obsolete conffile /etc/apache2/mods-available/mem_cache.conf out
of the way...
Moving obsolete conffile /etc/apache2/mods-available/authn_alias.load
out of the way...
Moving obsolete conffile /etc/apache2/mods-available/cern_meta.load out
of the way...
Moving obsolete conffile /etc/apache2/mods-available/disk_cache.load out
of the way...
Moving obsolete conffile /etc/apache2/mods-available/disk_cache.conf out
of the way...
Moving obsolete conffile /etc/apache2/mods-available/ident.load out of
the way...
Moving obsolete conffile /etc/apache2/mods-available/imagemap.load out
of the way...
Unpacking replacement apache2 ...
Processing triggers for man-db ...
fopen: Permission denied
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libaprutil1 (1.5.2-1) ...
Setting up libaprutil1-dbd-sqlite3 (1.5.2-1) ...
Setting up libaprutil1-ldap (1.5.2-1) ...
Setting up apache2-bin (2.4.6-2) ...
Setting up apache2-data (2.4.6-2) ...
Setting up apache2 (2.4.6-2) ...
Installing new version of config file /etc/cron.daily/apache2 ...
Installing new version of config file /etc/default/apache2 ...
Installing new version of config file /etc/init.d/apache2 ...
Installing new version of config file /etc/logrotate.d/apache2 ...
Installing new version of config file /etc/apache2/envvars ...
Installing new version of config file
/etc/apache2/mods-available/userdir.conf ...
Installing new version of config file
/etc/apache2/mods-available/ssl.load ...
Installing new version of config file
/etc/apache2/mods-available/dir.conf ...
Installing new version of config file
/etc/apache2/mods-available/authz_host.load ...
Installing new version of config file
/etc/apache2/mods-available/ssl.conf ...
Installing new version of config file
/etc/apache2/mods-available/authz_dbm.load ...
Installing new version of config file
/etc/apache2/mods-available/include.load ...
Installing new version of config file
/etc/apache2/mods-available/proxy.conf ...
Installing new version of config file
/etc/apache2/mods-available/proxy_balancer.conf ...
Installing new version of config file
/etc/apache2/mods-available/authz_user.load ...
Installing new version of config file
/etc/apache2/mods-available/mime.conf ...
Installing new version of config file
/etc/apache2/mods-available/negotiation.conf ...
Installing new version of config file
/etc/apache2/mods-available/info.conf ...
Installing new version of config file
/etc/apache2/mods-available/reqtimeout.conf ...
Installing new version of config file
/etc/apache2/mods-available/cgid.conf ...
Installing new version of config file
/etc/apache2/mods-available/setenvif.conf ...
Installing new version of config file
/etc/apache2/mods-available/proxy_balancer.load ...
Installing new version of config file
/etc/apache2/mods-available/auth_basic.load ...
Installing new version of config file
/etc/apache2/mods-available/asis.load ...
Installing new version of config file
/etc/apache2/mods-available/actions.conf ...
Installing new version of config file
/etc/apache2/mods-available/auth_digest.load ...
Installing new version of config file
/etc/apache2/mods-available/ldap.conf ...
Installing new version of config file
/etc/apache2/mods-available/alias.conf ...
Installing new version of config file
/etc/apache2/mods-available/proxy_ftp.conf ...
Installing new version of config file
/etc/apache2/mods-available/deflate.load ...
Installing new version of config file
/etc/apache2/mods-available/authz_groupfile.load ...
Installing new version of config file
/etc/apache2/mods-available/status.conf ...
Installing new version of config file
/etc/apache2/mods-available/mime_magic.conf ...
Installing new version of config file
/etc/apache2/mods-available/dav_fs.conf ...
Installing new version of config file
/etc/apache2/mods-available/deflate.conf ...
Installing new version of config file
/etc/apache2/mods-available/autoindex.conf ...
Installing new version of config file /etc/apache2/apache2.conf ...
Installing new version of config file /etc/apache2/ports.conf ...
Removing obsolete conffile
/etc/apache2/mods-available/authz_default.load ...
Removing obsolete conffile
/etc/apache2/mods-available/authn_default.load ...
Removing obsolete conffile /etc/apache2/mods-available/mem_cache.load ...
Removing obsolete conffile /etc/apache2/mods-available/mem_cache.conf ...
Removing obsolete conffile /etc/apache2/mods-available/authn_alias.load ...
Removing obsolete conffile /etc/apache2/mods-available/cern_meta.load ...
Removing obsolete conffile /etc/apache2/mods-available/disk_cache.load ...
Removing obsolete conffile /etc/apache2/mods-available/disk_cache.conf ...
Removing obsolete conffile /etc/apache2/mods-available/ident.load ...
Removing obsolete conffile /etc/apache2/mods-available/imagemap.load ...
Removing obsolete directory /etc/apache2/conf.d
Enabling module mpm_prefork.
Enabling module authn_core.
disable obsolete module authz_default
Enabling module authz_core.
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax
error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load
/usr/lib/apache2/modules/libphp5.so into server:
/usr/lib/apache2/modules/libphp5.so: undefined symbol: unixd_config
Enabling module filter.
Enabling module access_compat.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
[FAIL] Restarting web server: apache2 failed!
[warn] The apache2 configtest failed. ... (warning).
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax
error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load
/usr/lib/apache2/modules/libphp5.so into server:
/usr/lib/apache2/modules/libphp5.so: undefined symbol: unixd_config
Action 'configtest' failed.
The Apache error log may have more information.
invoke-rc.d: initscript apache2, action "restart" failed.
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 14276 files and directories currently installed.)
Preparing to replace libapache2-mod-php5 5.4.4-14+deb7u2 (using
.../libapache2-mod-php5_5.5.1+dfsg-1_amd64.deb) ...
Unpacking replacement libapache2-mod-php5 ...
Preparing to replace apache2-mpm-prefork 2.2.22-13 (using
.../apache2-mpm-prefork_2.4.6-2_amd64.deb) ...
[ ok ] Stopping web server: apache2.
Unpacking replacement apache2-mpm-prefork ...
Preparing to replace libxml2:amd64 2.8.0+dfsg1-7+nmu1 (using
.../libxml2_2.9.1+dfsg1-2_amd64.deb) ...
Unpacking replacement libxml2:amd64 ...
Selecting previously unselected package libbsd0:amd64.
Unpacking libbsd0:amd64 (from .../libbsd0_0.6.0-1_amd64.deb) ...
Selecting previously unselected package libedit2:amd64.
Unpacking libedit2:amd64 (from .../libedit2_2.11-20080614-6_amd64.deb) ...
Preparing to replace php5-cli 5.4.4-14+deb7u2 (using
.../php5-cli_5.5.1+dfsg-1_amd64.deb) ...
Unpacking replacement php5-cli ...
Selecting previously unselected package lsof.
Unpacking lsof (from .../lsof_4.86+dfsg-1_amd64.deb) ...
Preparing to replace php5-common 5.4.4-14+deb7u2 (using
.../php5-common_5.5.1+dfsg-1_amd64.deb) ...
Unpacking replacement php5-common ...
dpkg: warning: unable to delete old directory '/etc/php5/conf.d':
Directory not empty
Processing triggers for man-db ...
fopen: Permission denied
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up apache2.2-bin (2.4.6-2) ...
Setting up libxml2:amd64 (2.9.1+dfsg1-2) ...
Setting up lsof (4.86+dfsg-1) ...
Setting up php5-common (5.5.1+dfsg-1) ...
Installing new version of config file /etc/cron.d/php5 ...
php5_invoke: Enable module pdo for cli SAPI
php5_invoke: Enable module pdo for apache2 SAPI

Creating config file /etc/php5/mods-available/opcache.ini with new version
php5_invoke: Enable module opcache for cli SAPI
php5_invoke: Enable module opcache for apache2 SAPI
Setting up libapache2-mod-php5 (5.5.1+dfsg-1) ...
Replacing config file /etc/php5/apache2/php.ini with new version
php5_invoke pdo: already enabled for apache2 SAPI
php5_invoke opcache: already enabled for apache2 SAPI
apache2_invoke php5: already enabled
[Ok] Restarting web server: apache2
Setting up apache2-mpm-prefork (2.4.6-2) ...
Setting up libbsd0:amd64 (0.6.0-1) ...
Setting up libedit2:amd64 (2.11-20080614-6) ...
Setting up php5-cli (5.5.1+dfsg-1) ...
Replacing config file /etc/php5/cli/php.ini with new version
php5_invoke pdo: already enabled for cli SAPI
php5_invoke opcache: already enabled for cli SAPI
root@build:/#
root@build:/# a2query -m
env (enabled by unknown)
authz_host (enabled by unknown)
mpm_prefork (enabled by site administrator)
alias (enabled by unknown)
authz_core (enabled by maintainer script)
authz_user (enabled by unknown)
negotiation (enabled by unknown)
dir (enabled by unknown)
reqtimeout (enabled by unknown)
mime (enabled by unknown)
autoindex (enabled by unknown)
auth_basic (enabled by unknown)
authn_file (enabled by unknown)
setenvif (enabled by unknown)
authn_core (enabled by maintainer script)
php5 (enabled by unknown)
access_compat (enabled by maintainer script)
cgi (enabled by unknown)
deflate (enabled by unknown)
authz_groupfile (enabled by unknown)
status (enabled by unknown)
filter (enabled by maintainer script)
unique_id (enabled by unknown)
root@build:/# apt-get install apache2-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  apache2-mpm-prefork apache2.2-bin libcurl3-gnutls librtmp0 libssh2-1
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  apache2-doc
0 upgraded, 1 newly installed, 0 to remove and 123 not upgraded.
Need to get 2.650 kB of archives.
After this operation, 19,7 MB of additional disk space will be used.
Get:1 http://ftp.de.debian.org/debian/ sid/main apache2-doc all 2.4.6-2
[2.650 kB]
Fetched 2.650 kB in 1s (1.566 kB/s)
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package apache2-doc.
(Reading database ... 14326 files and directories currently installed.)
Unpacking apache2-doc (from .../apache2-doc_2.4.6-2_all.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up apache2-doc (2.4.6-2) ...
apache2_invoke: Enable configuration apache2-doc
[Ok] Reloading web server: apache2 failed!
root@build:/# a2query -m
env (enabled by unknown)
authz_host (enabled by unknown)
mpm_prefork (enabled by site administrator)
alias (enabled by unknown)
authz_core (enabled by maintainer script)
authz_user (enabled by unknown)
negotiation (enabled by unknown)
dir (enabled by unknown)
reqtimeout (enabled by unknown)
mime (enabled by unknown)
autoindex (enabled by unknown)
auth_basic (enabled by unknown)
authn_file (enabled by unknown)
setenvif (enabled by unknown)
authn_core (enabled by maintainer script)
php5 (enabled by unknown)
access_compat (enabled by maintainer script)
cgi (enabled by unknown)
deflate (enabled by unknown)
authz_groupfile (enabled by unknown)
status (enabled by unknown)
filter (enabled by maintainer script)
unique_id (enabled by unknown)
root@build:/# apachectl configtest
Syntax OK



-- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: