enhance php-fpm configuration options to use custom-ini-settings, refs #587
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -146,8 +146,14 @@ class apache_fcgid extends apache
|
||||
// get php.ini for our own vhost
|
||||
$php = new phpinterface($this->getDB(), $this->settings, $domain);
|
||||
|
||||
// @FIXME don't use fcgid settings if not fcgid in use, but we don't have anything else atm
|
||||
$phpconfig = $php->getPhpConfig($this->settings['system']['mod_fcgid_defaultini_ownvhost']);
|
||||
// get php-config
|
||||
if ($this->settings['phpfpm']['enabled'] == '1') {
|
||||
// fpm
|
||||
$phpconfig = $php->getPhpConfig($this->settings['phpfpm']['vhost_defaultini']);
|
||||
} else {
|
||||
// fcgid
|
||||
$phpconfig = $php->getPhpConfig($this->settings['system']['mod_fcgid_defaultini_ownvhost']);
|
||||
}
|
||||
|
||||
// create starter-file | config-file
|
||||
$php->getInterface()->createConfig($phpconfig);
|
||||
|
||||
Reference in New Issue
Block a user