Upgrade of libapache2-mod-php8.1 does not reload apache2
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.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Roel van Meer for more information if necessary.