From 0b949c815186c089b56d153bf0ed303c4c60a70c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 9 Jul 2025 11:00:15 +0200 Subject: [PATCH] tools.func: fix an bug while php libapache2-mod breaks (#5857) --- misc/tools.func | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index b3ddbc638..b3561a650 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -451,7 +451,7 @@ function setup_php() { MODULE_LIST+=" php${PHP_VERSION}-fpm" fi if [[ "$PHP_APACHE" == "YES" ]]; then - $STD apt-get install -y apache2 + $STD apt-get install -y apache2 libapache2-mod-php${PHP_VERSION} $STD systemctl restart apache2 || true fi @@ -459,6 +459,8 @@ function setup_php() { if [[ -f /etc/apache2/mods-enabled/php${CURRENT_PHP}.load ]]; then $STD a2dismod php${CURRENT_PHP} || true fi + $STD a2enmod php${PHP_VERSION} + $STD systemctl restart apache2 || true fi if [[ "$PHP_FPM" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then