Commit df2f3a16 authored by Thom's avatar Thom 🛠

Always disable mod-php8 on Apache2, without throwing a critical error if it does not exist (#36)

parent 2661ccdf
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment