add a few opcache relevant php-ini directives to be used with php-fpm; add opcache.restrict_api to the default php-config for each domain with the customer's docroot as default value
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -3162,3 +3162,12 @@ if (isFroxlorVersion('0.9.35-rc1')) {
|
||||
lastStepStatus(0);
|
||||
|
||||
}
|
||||
|
||||
if (isDatabaseVersion('201603070')) {
|
||||
|
||||
showUpdateStep("Adding new php.ini directive to php-configurations: opcache.restrict_api");
|
||||
Database::query("UPDATE `" . TABLE_PANEL_PHPCONFIGS ."` SET `phpsettings` = CONCAT(`phpsettings`, 'opcache.restrict_api = \"{DOCUMENT_ROOT}\"\r\n');");
|
||||
lastStepStatus(0);
|
||||
|
||||
updateToDbVersion('201603150');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user