Repository navigation
Purge only the PHP Apache module when removing ondrej packages - #2096
Merged
fog-workflows[bot] merged 1 commit intoNov 13, 2026
Merged
Conversation
The deb.sury.org cleanup in installfog/updatefog ran apt-get purge 'libapache*'. That glob matches every Apache module, so an update removed mod-wsgi and mod-xsendfile that other vhosts used, and Apache failed to restart. Limit the glob to 'libapache2-mod-php*', the package the purge exists to remove. Fixes #2095 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2095.
Problem
On Ubuntu 18.04 and later, the installer cleans up any deb.sury.org (ondrej) package it finds. That cleanup runs
apt-get purge 'libapache*'. The glob matches every Apache module. An update therefore removedlibapache2-mod-wsgi-py3andlibapache2-mod-xsendfile, which another vhost used. Apache then failed to restart withInvalid command 'WSGIScriptAlias'.Change
The glob is now
'libapache2-mod-php*', the one package the purge exists to remove beforeppa-purgedowngrades PHP.Evidence
apt-get -s purgein anubuntu:26.04container with apache2, mod-php, mod-wsgi-py3 and mod-xsendfile installed:The path runs only when
dpkg -llists a deb.sury.org package, so the CI install legs do not exercise it.🤖 Generated with Claude Code