From df2f3a16b74a7121eadd938d6f37a90a796a4a71 Mon Sep 17 00:00:00 2001 From: Thom Pol Date: Thu, 25 Feb 2021 21:01:19 +0100 Subject: [PATCH] Always disable mod-php8 on Apache2, without throwing a critical error if it does not exist (#36) --- lib/os/class.ISPConfigDebianOS.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/os/class.ISPConfigDebianOS.inc.php b/lib/os/class.ISPConfigDebianOS.inc.php index fe32aa9..9e8c001 100644 --- a/lib/os/class.ISPConfigDebianOS.inc.php +++ b/lib/os/class.ISPConfigDebianOS.inc.php @@ -161,9 +161,10 @@ class ISPConfigDebianOS extends ISPConfigBaseOS { protected function getApacheModulesToDisable() { $modules = array( - 'mpm_prefork' + 'mpm_prefork', + 'php8.0' ); - + return $modules; } @@ -878,7 +879,7 @@ mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"'; $cmd = 'a2dismod ' . implode(' ', $modules) . ' 2>&1'; $result = $this->exec($cmd); if($result === false) { - throw new ISPConfigOSException('Command ' . $cmd . ' failed.'); + // throw new ISPConfigOSException('Command ' . $cmd . ' failed.'); } ISPConfigLog::info('Enabling apache modules.', true); -- GitLab