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