Public bug reported: # lsb_release -rd Description: Ubuntu 10.04.4 LTS Release: 10.04
# apt-cache policy apache2 apache2: Installed: 2.2.14-5ubuntu8.9 Candidate: 2.2.14-5ubuntu8.9 Version table: *** 2.2.14-5ubuntu8.9 0 500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages 100 /var/lib/dpkg/status 2.2.14-5ubuntu8.8 0 500 http://us.archive.ubuntu.com/ubuntu/ lucid-security/main Packages 2.2.14-5ubuntu8 0 500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages # apt-cache policy libapache2-mod-php5 libapache2-mod-php5: Installed: 5.3.2-1ubuntu4.14 Candidate: 5.3.2-1ubuntu4.14 Version table: *** 5.3.2-1ubuntu4.14 0 500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages 500 http://us.archive.ubuntu.com/ubuntu/ lucid-security/main Packages 100 /var/lib/dpkg/status 5.3.2-1ubuntu4 0 500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages -------------------------------------- I have observed this behavior several times over the course of a few months now. It seems that any time I update apache2 and related packages, a) Apache cannot be shutdown cleanly, so all running processes are killed, and b) libapache2-mod-php5 is removed and never reinstalled. The fact that libapache2-mod-php5 is never reinstalled causes Apache to fail to start after the update, due to syntax errors (unrecognized directives) in the Apache configuration. The apt-get log transcript follows: -------------------------------------- Now updating apache2 .. Installing package(s) with command apt-get -y install apache2 .. Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: apache2-mpm-worker apache2-threaded-dev apache2.2-bin apache2.2-common Suggested packages: ufw The following packages will be REMOVED: apache2-mpm-prefork libapache2-mod-php5 The following NEW packages will be installed: apache2-mpm-worker The following packages will be upgraded: apache2 apache2-threaded-dev apache2.2-bin apache2.2-common 4 upgraded, 1 newly installed, 2 to remove and 18 not upgraded. Need to get 3172kB of archives. After this operation, 8487kB disk space will be freed. Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2-threaded-dev 2.2.14-5ubuntu8.9 [137kB] Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2 2.2.14-5ubuntu8.9 [1488B] Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2.2-common 2.2.14-5ubuntu8.9 [291kB] Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2.2-bin 2.2.14-5ubuntu8.9 [2740kB] Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main apache2-mpm-worker 2.2.14-5ubuntu8.9 [2366B] Reading changelogs... apache2 (2.2.15-1) unstable; urgency=low * This release adds and enables mod_reqtimeout, which limits the time Apache waits for a client to send a complete request. This helps to mitigate against certain denial of service attacks. In case of problems with slow clients, the timeout values can be adjusted in /etc/apache2/mods-available/reqtimeout.conf , or the module can be disabled with "a2dismod reqtimeout". -- Chuck Short <zul...@ubuntu.com> Tue, 13 Apr 2010 09:09:34 -0400 apt-listchanges: Mailing root: apt-listchanges: news for example.com Fetched 3172kB in 1s (1958kB/s) (Reading database ... 68899 files and directories currently installed.) Preparing to replace apache2-threaded-dev 2.2.14-5ubuntu8.8 (using .../apache2-threaded-dev_2.2.14-5ubuntu8.9_amd64.deb) ... Unpacking replacement apache2-threaded-dev ... Preparing to replace apache2 2.2.14-5ubuntu8.8 (using .../apache2_2.2.14-5ubuntu8.9_amd64.deb) ... Unpacking replacement apache2 ... (Reading database ... 68891 files and directories currently installed.) Removing libapache2-mod-php5 ... Module php5 disabled. Run '/etc/init.d/apache2 restart' to activate new configuration! dpkg: apache2-mpm-prefork: dependency problems, but removing anyway as you requested: roundcube-core depends on apache2 | lighttpd | httpd; however: Package apache2 is not configured yet. Package apache2-mpm-prefork which provides apache2 is to be removed. Package lighttpd is not installed. Package httpd is not installed. Package apache2-mpm-prefork which provides httpd is to be removed. mailman depends on apache2 | httpd; however: Package apache2 is not configured yet. Package apache2-mpm-prefork which provides apache2 is to be removed. Package httpd is not installed. Package apache2-mpm-prefork which provides httpd is to be removed. mediawiki depends on apache2 | httpd; however: Package apache2 is not configured yet. Package apache2-mpm-prefork which provides apache2 is to be removed. Package httpd is not installed. Package apache2-mpm-prefork which provides httpd is to be removed. libapache2-mod-python depends on apache2; however: Package apache2 is not configured yet. Package apache2-mpm-prefork which provides apache2 is to be removed. roundcube-core depends on apache2 | lighttpd | httpd; however: Package apache2 is not configured yet. Package apache2-mpm-prefork which provides apache2 is to be removed. Package lighttpd is not installed. Package httpd is not installed. Package apache2-mpm-prefork which provides httpd is to be removed. mailman depends on apache2 | httpd; however: Package apache2 is not configured yet. Package apache2-mpm-prefork which provides apache2 is to be removed. Package httpd is not installed. Package apache2-mpm-prefork which provides httpd is to be removed. mediawiki depends on apache2 | httpd; however: Package apache2 is not configured yet. Package apache2-mpm-prefork which provides apache2 is to be removed. Package httpd is not installed. Package apache2-mpm-prefork which provides httpd is to be removed. Removing apache2-mpm-prefork ... * Stopping web server apache2 * We failed to correctly shutdown apache, so we're now killing all running apache processes. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now! ... waiting ...done. (Reading database ... 68887 files and directories currently installed.) Preparing to replace apache2.2-common 2.2.14-5ubuntu8.8 (using .../apache2.2-common_2.2.14-5ubuntu8.9_amd64.deb) ... Unpacking replacement apache2.2-common ... Preparing to replace apache2.2-bin 2.2.14-5ubuntu8.8 (using .../apache2.2-bin_2.2.14-5ubuntu8.9_amd64.deb) ... Unpacking replacement apache2.2-bin ... Selecting previously deselected package apache2-mpm-worker. Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.14-5ubuntu8.9_amd64.deb) ... Setting up apache2.2-bin (2.2.14-5ubuntu8.9) ... Setting up apache2.2-common (2.2.14-5ubuntu8.9) ... Setting up apache2-threaded-dev (2.2.14-5ubuntu8.9) ... Setting up apache2-mpm-worker (2.2.14-5ubuntu8.9) ... * Starting web server apache2 Syntax error on line 15 of /etc/apache2/httpd.conf: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration ...fail! invoke-rc.d: initscript apache2, action "start" failed. Setting up apache2 (2.2.14-5ubuntu8.9) ... .. install complete. ** Affects: apache2 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/969426 Title: Apache fails to shutdown cleanly during update and removes libapache2 -mod-php5 in the process, causing service restart to fail due to syntax errors in configuration To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/969426/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs