Creating config file /etc/php/8.3/mods-available/opcache.ini with new version
Setting up php-mysql (2:8.3+93ubuntu2) ...
Setting up php8.3-cli (8.3.6-0ubuntu0.24.04.4) ...
update-alternatives: using /usr/bin/php8.3 to provide /usr/bin/php (php) in
auto mode
update-alternatives: using /usr/bin/phar8.3 to provide /usr/bin/phar (phar) in
auto mode
update-alternatives: using /usr/bin/phar.phar8.3 to provide /usr/bin/phar.phar
(phar.phar) in auto mode
Creating config file /etc/php/8.3/cli/php.ini with new version
Setting up libapache2-mod-php8.3 (8.3.6-0ubuntu0.24.04.4) ...
Not replacing deleted config file /etc/php/8.3/apache2/php.ini
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
[1mdpkg:[0m error processing package libapache2-mod-php8.3 (--configure):
installed libapache2-mod-php8.3 package post-installation script subprocess
returned error exit status 1
From the logs it looks like you purged php8.3 and apache2, did a dist-
upgrade, and then reinstalled apache2 and php8.3. That seems sensible
and should work. There isn't a clear (to me) error message explaining
what went wrong, but presumably the history of installs/removal/purges
left the system in an inconsistent enough state that it triggered some
corner case in the installation logic that led to the failure.
Best I can trace things is that the failure may be happening within the
php_enable() function where it calls apache2_switch_mpm prefork.
mpm=$(a2query -M)
case "$(a2query -M)" in
prefork|itk) return 0;;
*) if apache2_switch_mpm prefork; then return 0; fi;;
esac
apache2_msg "err" "$DPKG_MAINTSCRIPT_PACKAGE: Could not switch to prefork
MPM, not enabling PHP @PHP_VERSION@"
return 1
Maybe there was a hung apache process? Maybe the purge left some
dangling bit that caused a module conflict? Maybe something
apparmor/systemd related? Hard to make a precise guess.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2117090
Title:
package libapache2-mod-php8.3 8.3.6-0ubuntu0.24.04.4 failed to
install/upgrade: installed libapache2-mod-php8.3 package post-
installation script subprocess returned error exit status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php8.3/+bug/2117090/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs