Set opcache.preload_user for PHP 7.4

This commit is contained in:
VirtuBox
2020-01-24 09:37:47 +01:00
parent a40a96c3e3
commit 47dbb65ed8
2 changed files with 6 additions and 1 deletions

View File

@@ -805,6 +805,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
config['opcache']['opcache.revalidate_freq'] = '5'
config['opcache']['opcache.consistency_checks'] = '0'
config['opcache']['opcache.validate_timestamps'] = '1'
config['opcache']['opcache.preload_user'] = 'www-data'
with open('/etc/php/7.4/fpm/php.ini',
encoding='utf-8', mode='w') as configfile:
Log.debug(self, "Writting php configuration into "