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
commitfa24247a355ed8e300d34e7b890e416c508b59e2 (patch)
treee0514bc2e3b929860c55aeb7a5224f470450bea9
parentfa6b43623b086df7b14faed3563a8f5dfe8239f4 (diff)
php: update opcache default configuration about opcache.validate_permission and opcache.validate_root
-rw-r--r--opcache.ini11
1 files changed, 11 insertions, 0 deletions
diff --git a/opcache.ini b/opcache.ini
index 21f16ad..aae4888 100644
--- a/opcache.ini
+++ b/opcache.ini
@@ -93,3 +93,14 @@ opcache.blacklist_filename=/etc/php.d/opcache*.blacklist
; Useful for internal debugging only.
;opcache.protect_memory=0
+; 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