From 9c92bced1108793e5eed078a55450995178e0aad Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 22 Jul 2025 10:57:21 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 54773b30..df5934cc 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -465,8 +465,10 @@ function setup_php() { fi if [[ "$PHP_APACHE" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then - if [[ -f /etc/apache2/mods-enabled/php${CURRENT_PHP}.load ]]; then - $STD a2dismod php"${CURRENT_PHP}" || true + if [[ "$CURRENT_PHP" != "$PHP_VERSION" ]]; then + if [[ -f /etc/apache2/mods-enabled/php${CURRENT_PHP}.load ]]; then + $STD a2dismod php"${CURRENT_PHP}" || true + fi fi fi