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

Bug#239416: Re: Bug#239416: apache: Apache 1.3.29.0.2-4 failling to upgrade



Hi,

I also recognized this problem during an update from version 1.3.29.0.1-3.
I do not have php4 installed nor libapache-mod-ssl but ucf version 1.00.

As suggested by Fabio I added "set -x" to /usr/share/apache/postinst.common
and attached the output.

Florian started apache (using apachectl start) and got an error, 
that suexec isn't configured right.

pluto:/home/jens# apachectl start
/usr/sbin/apachectl start: httpd (pid 1418) already running
pluto:/home/jens# apachectl stop
/usr/sbin/apachectl stop: httpd stopped
pluto:/home/jens# apachectl start
/usr/sbin/apachectl start: httpd started
pluto:/home/jens# apachectl stop
/usr/sbin/apachectl stop: httpd stopped

As you can see I did not get an error related to suexec, but after
restarting apt-get it works!

pluto:/home/jens# apt-get install apache
Reading Package Lists... Done
Building Dependency Tree... Done
apache is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache (1.3.29.0.2-4) ...
Starting web server: apache.

Setting up dwww (1.9.8) ...

Building dwww pages in the background...

It seems that "apachectl stop" does the magic ...

I hope it helps.

Jens
Reading Package Lists...
Building Dependency Tree...
apache is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache (1.3.29.0.2-4) ...
+ '[' configure '!=' configure ']'
+ HIDE=
+ '[' 1.3.29.0.1-3 '!=' '' ']'
+ UPGRADE=true
+ dpkg --compare-versions 1.3.29.0.1-3 ge 1.3.28-1
+ HIDE=quiet
+ dpkg --compare-versions 1.3.29.0.1-3 eq 1.3.29.0.2-4
+ /usr/sbin/modules-config apache internal quiet
+ '[' true '!=' true ']'
+ do_all apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' '!' -e /etc/apache/modules.conf ']'
++ printf '\x07'
+ export $'IFS=\a'
+ IFS=
++ /usr/share/apache/listconffiles /etc/apache/httpd.conf.dpkg-inst.queue
+ CONFS=/etc/apache/modules.conf
++ printf '\x07'
+ export $'CONFS=/etc/apache/httpd.conf.dpkg-inst.queue\a/etc/apache/modules.conf\a'
+ CONFS=/etc/apache/httpd.conf.dpkg-inst.queue/etc/apache/modules.conf
+ prepare_ucf apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' '!' -e /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue ']'
+ cp -f /etc/apache/httpd.conf.dpkg-inst.queue /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ '[' '!' -e /etc/apache/modules.conf.dpkg-inst.queue ']'
+ do_debconf_configs apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ i=/etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue servername
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ SERNAME=localhost
+ SERNAMERB=localhost
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue serveradmin
++ tail -n 1
++ awk '{print $2}'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*serveradmin/i}'
+ SERADMIN=webmaster@pluto
+ SERADMINRB=webmaster@pluto
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue documentroot
++ tail -n 1
++ awk '{print $2}'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*documentroot/i}'
+ DOCROOT=/var/www
+ DOCROOTRB=/var/www
+ '[' apache '!=' apache-ssl ']'
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue port
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*port/i}'
++ tail -n 1
++ awk '{print $2}'
+ PORT=80
+ PORTRB=80
+ i=/etc/apache/modules.conf.dpkg-inst.queue
+ '[' '!' localhost ']'
+ '[' '!' webmaster@pluto ']'
+ '[' '!' /var/www ']'
+ '[' apache '!=' apache-ssl ']'
+ '[' '!' 80 ']'
+ '[' '!' localhost ']'
+ db_set apache/server-name localhost
+ echo 'SET apache/server-name' localhost
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ db_set apache/server-admin webmaster@pluto
+ echo 'SET apache/server-admin' webmaster@pluto
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ db_set apache/document-root /var/www
+ echo 'SET apache/document-root' /var/www
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ '[' apache '!=' apache-ssl ']'
+ db_set apache/server-port 80
+ echo 'SET apache/server-port' 80
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ db_input low apache/server-name
+ echo 'INPUT low' apache/server-name
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=30 question skipped
+ return 30
+ true
+ db_input low apache/server-admin
+ echo 'INPUT low' apache/server-admin
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=30 question skipped
+ return 30
+ true
+ db_input low apache/document-root
+ echo 'INPUT low' apache/document-root
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=30 question skipped
+ return 30
+ true
+ '[' apache '!=' apache-ssl ']'
+ db_input low apache/server-port
+ echo 'INPUT low' apache/server-port
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=30 question skipped
+ return 30
+ true
+ db_go
+ echo 'GO '
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=ok
+ return 0
+ db_get apache/server-name
+ echo 'GET apache/server-name'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=localhost
+ return 0
+ SERNAME=localhost
+ '[' xlocalhost = x ']'
+ db_get apache/server-admin
+ echo 'GET apache/server-admin'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=webmaster@pluto
+ return 0
++ echo webmaster@pluto
++ sed -e 's/\./\\./g' -e 's/\@/\\@/g'
+ SERADMIN=webmaster\@pluto
+ '[' 'xwebmaster\@pluto' = x ']'
+ db_get apache/document-root
+ echo 'GET apache/document-root'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=/var/www
+ return 0
+ DOCROOT=/var/www
+ '[' x/var/www = x ']'
+ '[' apache '!=' apache-ssl ']'
+ db_get apache/server-port
+ echo 'GET apache/server-port'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=80
+ return 0
+ PORT=80
+ '[' x80 = x ']'
+ doblackmagic=true
+ i=/etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue servername
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=localhost
+ '[' localhost ']'
+ pset /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue ServerName localhost
+ cat /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ perl -e ' OUTER: while (<>) { if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ print; INNER: while (<>)
 { print; next INNER until /<\/virtualhost/i }};
 if ( ! /^\s*#/ ) {s,^\s*ServerName.*,ServerName localhost,i;} print}'
+ mv -f /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue.3621 /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ doblackmagic=false
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue serveradmin
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*serveradmin/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=webmaster@pluto
+ '[' webmaster@pluto ']'
+ pset /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue ServerAdmin 'webmaster\@pluto'
+ cat /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ perl -e ' OUTER: while (<>) { if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ print; INNER: while (<>)
 { print; next INNER until /<\/virtualhost/i }};
 if ( ! /^\s*#/ ) {s,^\s*ServerAdmin.*,ServerAdmin webmaster\@pluto,i;} print}'
+ mv -f /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue.3621 /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue documentroot
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*documentroot/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=/var/www
+ '[' /var/www ']'
+ pset /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue DocumentRoot /var/www
+ cat /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ perl -e ' OUTER: while (<>) { if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ print; INNER: while (<>)
 { print; next INNER until /<\/virtualhost/i }};
 if ( ! /^\s*#/ ) {s,^\s*DocumentRoot.*,DocumentRoot /var/www,i;} print}'
+ mv -f /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue.3621 /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue port
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*port/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=80
+ '[' 80 ']'
+ pset /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue Port 80
+ cat /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ perl -e ' OUTER: while (<>) { if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ print; INNER: while (<>)
 { print; next INNER until /<\/virtualhost/i }};
 if ( ! /^\s*#/ ) {s,^\s*Port.*,Port 80,i;} print}'
+ mv -f /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue.3621 /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ i=/etc/apache/modules.conf.dpkg-inst.queue
++ pget /etc/apache/modules.conf.dpkg-inst.queue servername
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=
+ '[' '' ']'
++ pget /etc/apache/modules.conf.dpkg-inst.queue serveradmin
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*serveradmin/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=
+ '[' '' ']'
++ pget /etc/apache/modules.conf.dpkg-inst.queue documentroot
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*documentroot/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=
+ '[' '' ']'
++ pget /etc/apache/modules.conf.dpkg-inst.queue port
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*port/i}'
++ tail -n 1
++ awk '{print $2}'
+ temp=
+ '[' '' ']'
+ '[' false = true ']'
+ fix_pid apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
++ grep 'PidFile /var/run/apache.pid' /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ '[' '!' 'PidFile /var/run/apache.pid' ']'
+ check_start apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ db_get apache/init
+ echo 'GET apache/init'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=true
+ return 0
+ start_at_boot=true
+ '[' -e /etc/default/apache ']'
+ '[' -e /etc/apache/apache_not_to_be_run ']'
+ add_magic_loadmodule_line apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' -f /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue ']'
+ grep -q LoadModule: /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ comment_out_adddefaultcharset apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' -f /etc/apache/srm.conf.dpkg-inst.queue ']'
+ link_mime_types apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' '!' -e /etc/apache/mime.types ']'
+ check_logs_outside_var_log apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
++ /usr/share/apache/listlogfiles /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ remove_savelog_setup apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ KNOWN_MD5SUMS=0046dde8f24968114cef88e76c37d339 e8f560b16b76c04ab8c61ee2f53de737 ecbc4d14566e32bdbe16075c752c3cde
+ '[' -f /etc/cron.daily/apache ']'
+ '[' -f /etc/apache/cron.conf ']'
+ link_suexec apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ db_get apache/enable-suexec
+ echo 'GET apache/enable-suexec'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=false
+ return 0
+ cd /usr/lib/apache
+ '[' false = true ']'
++ readlink suexec
+ '[' -L suexec -a '' = suexec.disabled ']'
+ defaultindex apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' '!' -d /var/www ']'
+ install_suexec_limit apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' '!' -e /etc/apache/suexec.limits ']'
+ add_conf_d apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ grep -qs 'Include /etc/apache/conf.d' /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ do_ucf apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' -e /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue ']'
+ mv -f /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue /etc/apache/httpd.conf.dpkg-inst.queue
+ '[' -e /etc/apache/modules.conf.fake ']'
+ '[' -e /etc/apache/httpd.conf.dpkg-inst.queue ']'
+ ucf --debconf-ok /etc/apache/httpd.conf.dpkg-inst.queue /etc/apache/httpd.conf
+ rm -f /etc/apache/httpd.conf.dpkg-inst.queue
+ '[' -e /etc/apache/httpd.conf.dpkg-dist ']'
+ '[' -e /etc/apache/srm.conf.dpkg-inst.queue ']'
+ '[' -e /etc/apache/access.conf.dpkg-inst.queue ']'
+ '[' -e /etc/apache/modules.conf.dpkg-inst.queue ']'
+ ucf --debconf-ok /etc/apache/modules.conf.dpkg-inst.queue /etc/apache/modules.conf
+ rm -f /etc/apache/modules.conf.dpkg-inst.queue
+ '[' -e /etc/apache/modules.conf.dpkg-dist ']'
++ printf '\x07'
+ export $'IFS=\a'
+ IFS=
++ /usr/share/apache/listconffiles /etc/apache/httpd.conf
+ CONFS=/etc/apache/httpd.conf/etc/apache/modules.conf
+ '[' -e /etc/apache/httpd.conf.dpkg-inst.queue ']'
+ '[' -e /etc/apache/modules.conf.dpkg-inst.queue ']'
+ suggested_corrections apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ corfile=/etc/apache/suggested_corrections
+ rm -f /etc/apache/suggested_corrections
++ printf '\x07'
+ export $'IFS=\a'
+ IFS=
++ /usr/share/apache/listconffiles -V /etc/apache/httpd.conf
+ CONFS=/etc/apache/httpd.conf/etc/apache/modules.conf
++ pget /etc/apache/httpd.conf 'Alias \/icons\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*Alias \/icons\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ icons=/usr/share/apache/icons/
+ '[' /usr/share/apache/icons/ ']'
+ '[' /usr/share/apache/icons/ '!=' /usr/share/apache/icons/ ']'
++ pget /etc/apache/httpd.conf 'ScriptAlias \/cgi-bin\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*ScriptAlias \/cgi-bin\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ scripts=/usr/lib/cgi-bin/
+ '[' /usr/lib/cgi-bin/ ']'
+ '[' /usr/lib/cgi-bin/ '!=' /usr/lib/cgi-bin/ ']'
++ pget /etc/apache/httpd.conf 'Alias \/doc\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*Alias \/doc\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ docs=/usr/share/doc/
+ '[' /usr/share/doc/ ']'
+ '[' /usr/share/doc/ '!=' /usr/share/doc/ ']'
++ pget /etc/apache/httpd.conf MIMEMagicFile
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*MIMEMagicFile/i}'
++ tail -n 1
++ awk '{print $NF}'
+ mime=share/magic
+ '[' share/magic ']'
+ '[' share/magic '!=' /usr/share/misc/file/magic.mime ']'
+ echo 'apache /etc/apache/httpd.conf config file declares a non standard:'
+ echo 'MIMEMagicFile share/magic'
+ echo 'and it should be changed to:'
+ echo 'MIMEMagicFile /usr/share/misc/file/magic.mime'
+ echo ----
+ '[' apache = apache-ssl ']'
++ pget /etc/apache/modules.conf 'Alias \/icons\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*Alias \/icons\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ icons=
+ '[' '' ']'
++ pget /etc/apache/modules.conf 'ScriptAlias \/cgi-bin\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*ScriptAlias \/cgi-bin\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ scripts=
+ '[' '' ']'
++ pget /etc/apache/modules.conf 'Alias \/doc\/'
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*Alias \/doc\//i}'
++ tail -n 1
++ awk '{print $NF}'
+ docs=
+ '[' '' ']'
++ pget /etc/apache/modules.conf MIMEMagicFile
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*MIMEMagicFile/i}'
++ tail -n 1
++ awk '{print $NF}'
+ mime=
+ '[' '' ']'
+ '[' apache = apache-ssl ']'
+ db_stop
+ echo STOP
+ '[' true = false ']'
+ '[' -x /etc/init.d/apache ']'
+ update-rc.d apache defaults 91
+ '[' -x /usr/sbin/invoke-rc.d ']'
+ invoke-rc.d apache start
Starting web server: apache failed
invoke-rc.d: initscript apache, action "start" failed.
dpkg: error processing apache (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of dwww:
 dwww depends on apache | httpd; however:
  Package apache is not configured yet.
  Package httpd is not installed.
  Package apache which provides httpd is not configured yet.
dpkg: error processing dwww (--configure):
 dependency problems - leaving unconfigured
Setting up fam (2.7.0-5) ...
Starting file alteration monitor: invoke-rc.d: initscript fam, action "start" failed.
dpkg: error processing fam (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 apache
 dwww
 fam
W: Not using locking for read only lock file /var/cache/apt/archives/lock
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply to: