From ab82695806acf17e4610984735304a17128f2bb7 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Thu, 27 Jul 2023 11:25:03 +0200 Subject: [PATCH] adjustments in installation for debian 12 and fcgid / disabling mod_php; thx to Konstantin Signed-off-by: Michael Kaufmann --- lib/Froxlor/Install/Install/Core.php | 6 +++++- lib/configfiles/bookworm.xml | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/Froxlor/Install/Install/Core.php b/lib/Froxlor/Install/Install/Core.php index 5eb04f9a..839f856a 100644 --- a/lib/Froxlor/Install/Install/Core.php +++ b/lib/Froxlor/Install/Install/Core.php @@ -449,7 +449,11 @@ class Core $reload = "service php" . PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION . "-fpm restart"; $config_dir = "/etc/php/" . PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION . "/fpm/pool.d/"; // fcgid - $binary = "/usr/bin/php" . PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION . "-cgi"; + if ($this->validatedData['distribution'] == 'bookworm') { + $binary = "/usr/bin/php-cgi" . PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION; + } else { + $binary = "/usr/bin/php" . PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION . "-cgi"; + } } $db_user->query("UPDATE `" . TABLE_PANEL_FPMDAEMONS . "` SET `reload_cmd` = '" . $reload . "', `config_dir` = '" . $config_dir . "' WHERE `id` ='1';"); $db_user->query("UPDATE `" . TABLE_PANEL_PHPCONFIGS . "` SET `binary` = '" . $binary . "';"); diff --git a/lib/configfiles/bookworm.xml b/lib/configfiles/bookworm.xml index 88f60b44..1499ec17 100644 --- a/lib/configfiles/bookworm.xml +++ b/lib/configfiles/bookworm.xml @@ -3348,7 +3348,7 @@ aliases: files - + @@ -3381,7 +3381,7 @@ aliases: files {{settings.phpfpm.enabled_ownvhost}} - +