php7.7 sounds odd, but it's result of this command: a2query -m | sed -n 's/^\(php[\.0-9]*\) (enabled.*)/\1/p'
Hmm, I'll speak with apache2 maintainers how to solve this. It looks like you need to install apache2 first and then install libapache2-mod-php7.0. Unfortunatelly you should not depend on apache2 package: https://lintian.debian.org/tags/apache2-module-depends-on-real-apache2-package.html Cheers, -- Ondřej Surý <ond...@sury.org> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server Knot Resolver (https://www.knot-resolver.cz/) – secure, privacy-aware, fast DNS(SEC) resolver Vše pro chleba (https://vseprochleba.cz) – Potřeby pro pečení chleba všeho druhu On Thu, May 19, 2016, at 17:24, Chris Knadle wrote: > Ondřej Surý: > > The code is postinst is correct. This should switch to prefork when > > a2query -M returns anything else then prefork or itk: > > > > mpm=$(a2query -M) > > case "$(a2query -M)" in > > prefork|itk) return 0;; > > *) if apache2_switch_mpm prefork; then return 0; fi;; > > esac > > Could you check your apt.log for: > > > > ERROR: $PHP_MODULE module already enabled, not enabling PHP > > @PHP_VERSION@ > > > > or > > > > ERROR: Could not switch to prefork MPM, not enabling PHP @PHP_VERSION@ > > Hmm. Well I don't have an apt.log, but I found this in > /var/log/apt/term: > > Creating config file /etc/php/7.0/apache2/php.ini with new version > Setting up libapache2-mod-php7.0 (7.0.6-10) ... > Warning: Could not load Apache 2.4 maintainer script helper > > Something to note: /usr/share/apache2/apache2-maintscript-helper is part > of > the 'apache2' package, which libapache2-mod-php7.0 doesn't depend on. > (It > currently depends on apache2-api and apache2-bin.) After installing this > I > found Apache2 wasn't running and then loaded the apache2 package, then > tried > making links in /etc/apache2/mods-enabled to > /etc/apache2/mods-available/php7.0.conf and php7.0.load, leading to the > Apache2 error concerning the PHP module not being threadsafe. > > Later on in /var/log/apt/term when upgrading libapache2-mod-php7.0: > > Setting up libapache2-mod-php7.0 (7.0.6-12) ... > ERROR: php7.7 module already enabled, not enabling PHP 7.0 > > ? php7.7? That sounds odd. > > -- Chris > > -- > Chris Knadle > chris.kna...@coredump.us