From a3fb28105dea217c940ed87ddb87e73be9aba40b Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 16 Dec 2025 10:46:07 +0100 Subject: [PATCH] 2fauth: bump to php8.4 (#10019) * fix(2fauth): use default PHP version instead of hardcoded 8.3 - Remove hardcoded PHP_VERSION=8.3, let setup_php use default (8.4) - Remove invalid modules 'session' and 'openssl' (part of php-common) - Remove duplicate 'cli' module (already in DEFAULT_MODULES) - Make nginx fastcgi_pass use dynamic PHP_VERSION variable Fixes installation on Debian 13 (Trixie) which ships PHP 8.4. * Update 2fauth-install.sh --- install/2fauth-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/2fauth-install.sh b/install/2fauth-install.sh index 0f4606db44..95365cdb6d 100644 --- a/install/2fauth-install.sh +++ b/install/2fauth-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y nginx msg_ok "Installed Dependencies" -PHP_VERSION="8.3" PHP_MODULE="common,ctype,fileinfo,mysql,cli,tokenizer,dom,redis,session,openssl" PHP_FPM="YES" setup_php +PHP_MODULE="common,ctype,fileinfo,mysql,tokenizer,dom,redis" PHP_VERSION="8.4" PHP_FPM="YES" setup_php setup_composer setup_mariadb MARIADB_DB_NAME="2fauth_db" MARIADB_DB_USER="2fauth" setup_mariadb_db @@ -65,7 +65,7 @@ server { error_page 404 /index.php; location ~ \.php\$ { - fastcgi_pass unix:/var/run/php/php8.3-fpm.sock; + fastcgi_pass unix:/var/run/php/php${PHP_VERSION}-fpm.sock; fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name; include fastcgi_params; }