From 1b50f87d488a5080797544ca6be22c47b0d58212 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 18 Feb 2017 10:44:25 +0100 Subject: php: update opcache default configuration about opcache.validate_permission and opcache.validate_root --- 10-opcache.ini | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '10-opcache.ini') diff --git a/10-opcache.ini b/10-opcache.ini index 6907e94..cd4c8fa 100644 --- a/10-opcache.ini +++ b/10-opcache.ini @@ -112,7 +112,13 @@ opcache.blacklist_filename=/etc/php.d/opcache*.blacklist ;opcache.file_cache_fallback=1 ; Validate cached file permissions. +; Leads OPcache to check file readability on each access to cached file. +; This directive should be enabled in shared hosting environment, when few +; users (PHP-FPM pools) reuse the common OPcache shared memory. ;opcache.validate_permission=0 ; Prevent name collisions in chroot'ed environment. +; This directive prevents file name collisions in different "chroot" +; environments. It should be enabled for sites that may serve requests in +; different "chroot" environments. ;opcache.validate_root=0 -- cgit