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
commit83235b33c754117a8c70ca624c711fd87b6ca31c (patch)
treeabdaae1e63da2636c05cb2e4f72c603529779cdd
parent27b861e8b9c388e4925cd4d7d887fd8a282a8757 (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