From 83235b33c754117a8c70ca624c711fd87b6ca31c 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/10-opcache.ini b/10-opcache.ini index 84492a6..a5959f2 100644 --- a/10-opcache.ini +++ b/10-opcache.ini @@ -105,3 +105,15 @@ opcache.blacklist_filename=/etc/php.d/opcache*.blacklist ; Enables or disables checksum validation when script loaded from file cache. ;opcache.file_cache_consistency_checks=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