Re: [php-maint] Bug#799630: libapache2-mod-php5: changes apache MPM event if disabled
Control: reassign -1 apache2-dev
Control: affects -1 libapache2-mod-php5
while I agree with you, this problem has a source in dh_apache2, that
calls the php5_enable function (as recommended by dh_apache2) before
trying to re-enable the extension during the upgrade.
I could call "a2query -m php5" before switching the modules, but I think
that this is generic and it should probably go to dh_apache2 helper.
(Unless the more generic solution would be an overkill, in that case,
please reassing the bug back to libapache2-mod-php5.)
On Mon, Sep 21, 2015, at 03:00, Hamish Moffatt wrote:
> Package: libapache2-mod-php5
> Version: 5.6.13+dfsg-0+deb8u1
> Severity: normal
> I have disabled the php module (a2dismod php5) and switched to mpm_event.
> Upon upgrade, the postinst for libapache2-mod-php5 switched my MPM back
> to mpm_prefork anyway.
> Setting up libapache2-mod-php5 (5.6.13+dfsg-0+deb8u1) ...
> Module mpm_event disabled.
> Enabling module mpm_prefork.
> apache2_switch_mpm Switch to prefork
> apache2_invoke php5: no action - module was disabled by maintainer
> The package shouldn't re-enable itself on upgrade.
> pkg-php-maint mailing list
Ondřej Surý <firstname.lastname@example.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server