add new CUSTOMER_HOMEDIR replacer for php-configs, thx to rubberduck for the hint
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -262,7 +262,8 @@ class apache extends HttpConfigBase
|
||||
'openbasedir' => 0,
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
$php = new phpinterface($domain);
|
||||
$phpconfig = $php->getPhpConfig(Settings::Get('system.mod_fcgid_defaultini_ownvhost'));
|
||||
@@ -315,6 +316,7 @@ class apache extends HttpConfigBase
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath,
|
||||
'fpm_config_id' => isset($fpm_config['id']) ? $fpm_config['id'] : 1
|
||||
);
|
||||
|
||||
@@ -389,7 +391,8 @@ class apache extends HttpConfigBase
|
||||
'openbasedir' => 0,
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
}
|
||||
} // end of ssl-redirect check
|
||||
@@ -398,7 +401,8 @@ class apache extends HttpConfigBase
|
||||
$domain = array(
|
||||
'domain' => Settings::Get('system.hostname'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
}
|
||||
|
||||
@@ -446,6 +450,7 @@ class apache extends HttpConfigBase
|
||||
'adminid' => 1, /* first admin-user (superadmin) */
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath,
|
||||
'parentdomainid' => 0
|
||||
);
|
||||
|
||||
|
||||
@@ -206,6 +206,7 @@ class apache_fcgid extends apache
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath,
|
||||
'fpm_config_id' => isset($fpm_config['id']) ? $fpm_config['id'] : 1
|
||||
);
|
||||
|
||||
|
||||
@@ -162,7 +162,8 @@ class lighttpd extends HttpConfigBase
|
||||
'openbasedir' => 0,
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
|
||||
$php = new phpinterface($domain);
|
||||
@@ -185,7 +186,8 @@ class lighttpd extends HttpConfigBase
|
||||
'openbasedir' => 0,
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
}
|
||||
} else {
|
||||
@@ -193,7 +195,8 @@ class lighttpd extends HttpConfigBase
|
||||
$domain = array(
|
||||
'domain' => Settings::Get('system.hostname'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
}
|
||||
|
||||
@@ -219,6 +222,7 @@ class lighttpd extends HttpConfigBase
|
||||
'adminid' => 1, /* first admin-user (superadmin) */
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath,
|
||||
'parentdomainid' => 0,
|
||||
);
|
||||
|
||||
|
||||
@@ -126,7 +126,8 @@ class lighttpd_fcgid extends lighttpd
|
||||
'openbasedir' => 0,
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
|
||||
// all the files and folders have to belong to the local user
|
||||
|
||||
@@ -185,6 +185,7 @@ class nginx extends HttpConfigBase
|
||||
'adminid' => 1, /* first admin-user (superadmin) */
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath,
|
||||
'parentdomainid' => 0
|
||||
);
|
||||
|
||||
@@ -255,7 +256,8 @@ class nginx extends HttpConfigBase
|
||||
$this->nginx_data[$vhost_filename] .= $this->processSpecialConfigTemplate($row_ipsandports['specialsettings'], array(
|
||||
'domain' => Settings::Get('system.hostname'),
|
||||
'loginname' => Settings::Get('phpfpm.vhost_httpuser'),
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
), $row_ipsandports['ip'], $row_ipsandports['port'], $row_ipsandports['ssl'] == '1') . "\n";
|
||||
}
|
||||
|
||||
@@ -290,7 +292,8 @@ class nginx extends HttpConfigBase
|
||||
'openbasedir' => 0,
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
|
||||
$php = new phpinterface($domain);
|
||||
|
||||
@@ -75,7 +75,8 @@ class nginx_phpfpm extends nginx
|
||||
'openbasedir' => 0,
|
||||
'email' => Settings::Get('panel.adminmail'),
|
||||
'loginname' => 'froxlor.panel',
|
||||
'documentroot' => $mypath
|
||||
'documentroot' => $mypath,
|
||||
'customerroot' => $mypath
|
||||
);
|
||||
|
||||
// all the files and folders have to belong to the local user
|
||||
|
||||
Reference in New Issue
Block a user