summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-02-18 10:44:25 +0100
committerRemi Collet <fedora@famillecollet.com>2017-02-18 10:44:25 +0100
commit2a23f4b03e0bb6ce95e2ec62b34481a07c15fa14 (patch)
tree1ee001f493c85ba169c90c8c91c2ead9a2c07bb4
parent3839b2c3ae9f0d34216ace524003821f2af596ee (diff)
php: update opcache default configuration about opcache.validate_permission and opcache.validate_root
-rw-r--r--10-opcache.ini12
1 files changed, 12 insertions, 0 deletions
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