Upgrade of libapache2-mod-php8.1 does not reload apache2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php8.1 (Ubuntu) |
New
|
Undecided
|
Athos Ribeiro |
Bug Description
Today we discovered that most of our servers that are running Apache2 + libapache2-mod-php had Apache2 running with an older version of PHP, even though libapache2-
After investigating, we found that libapache2-
The expected behavior is that after upgrading or reinstalling libapache2-
As far as we could find, the problem exists in apache2-
APACHE2_
APACHE2_
APACHE2_
That means that the apache2_
Output of the trigger of a reinstall of libapache2-
Processing triggers for libapache2-
+ APACHE2_
+ + egrep -q installed|
dpkg-query -f ${Status} -W apache2
+ [ -z triggered ]
+ APACHE2_
+ [ postinst ]
+ APACHE2_
+ [ -z libapache2-
+ [ -z ]
+ APACHE2_
+ [ -z ]
+ APACHE2_
+ [ triggered = triggered ]
+ [ /etc/php/
+ [ -e /usr/share/
+ . /usr/share/
+ [ -n 1 ]
+ return
+ apache2_reload restart
+ apache2_
+ [ triggered = configure ]
+ return 1
+ return 0
+ exit 0
Although I would be highly surprised if this is actually an issue that has not been reported yet, I could not find any reports mentioning this behavior. Also, there's a security element to this: we expected the package upgrades (we're running unattended updates) to ensure the PHP version we're running is uptodate, but now it turns out we're running old versions of PHP without us knowing.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libapache2-
ProcVersionSign
Uname: Linux 5.19.0-43-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: GNOME
Date: Tue Oct 10 11:53:51 2023
InstallationDate: Installed on 2023-05-01 (161 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
SourcePackage: php8.1
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: server-todo |
Changed in php8.1 (Ubuntu): | |
assignee: | nobody → Athos Ribeiro (athos-ribeiro) |