add optional support for apache-itk-mpm (mod_php only)

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-02-18 16:01:38 +01:00
parent bbf05fa6fd
commit 03e48927a3
4 changed files with 24 additions and 0 deletions

View File

@@ -407,6 +407,16 @@ class apache {
$php_options_text .= ' php_flag engine off' . "\n";
}
/**
* check for apache-itk-support, #1400
* why is this here? Because it only works with mod_php
*/
if (Settings::get('system.apacheitksupport') == 1) {
$vhost_content.= ' <IfModule mpm_itk_module>' . "\n";
$vhost_content.= ' AssignUserID '. $domain['loginname'] . ' ' . $domain['loginname'] . "\n";
$vhost_content.= ' </IfModule>' . "\n";
}
return $php_options_text;
}