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

@@ -8,9 +8,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### v3.9.x - [Unreleased] ### v3.9.x - [Unreleased]
#### Added
- Set opcache.preload_user for PHP 7.4
#### Fixed #### Fixed
- MySQL databases backup when using remote MySQL server - MySQL databases backup when using remote MySQL serverlll
### v3.11.4 - 2020-01-17 ### v3.11.4 - 2020-01-17

View File

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