summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-18 07:51:18 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-18 07:51:18 +0200
commit0c77a2ca02e36a77a4a3b259871c11f6d1f0700d (patch)
treea04103e32b8a5b1d13dbef3ee67c20748600bf27
parentb315d6f0119764ae764ea932af7a119b76ff56cc (diff)
update opcache conf for php 7
-rw-r--r--10-opcache.ini16
-rw-r--r--php-fpm-www.conf4
2 files changed, 15 insertions, 5 deletions
diff --git a/10-opcache.ini b/10-opcache.ini
index 5ed5fbb..7477caa 100644
--- a/10-opcache.ini
+++ b/10-opcache.ini
@@ -92,10 +92,20 @@ opcache.blacklist_filename=/etc/php.d/opcache*.blacklist
; started from specified string. The default "" means no restriction
;opcache.restrict_api=
-; Experimental file based opcode cache
+; Enables and sets the second level cache directory.
+; It should improve performance when SHM memory is full, at server restart or
+; SHM reset. The default "" disables file based caching.
; RPM note : file cache directory must be owned by process owner
-; for mod_php, see /etc/httpd/conf.d/php.conf
-; for php-fpm, see /etc/php-fpm.d/*conf
+; for mod_php, see /etc/httpd/conf.d/php.conf
+; for php-fpm, see /etc/php-fpm.d/*conf
;opcache.file_cache=
+
+; Enables or disables opcode caching in shared memory.
;opcache.file_cache_only=0
+
+; Enables or disables checksum validation when script loaded from file cache.
;opcache.file_cache_consistency_checks=1
+
+; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
+; This should improve performance, but requires appropriate OS configuration.
+;opcache.huge_code_pages=1
diff --git a/php-fpm-www.conf b/php-fpm-www.conf
index 008d575..b0ad693 100644
--- a/php-fpm-www.conf
+++ b/php-fpm-www.conf
@@ -53,7 +53,7 @@ listen = 127.0.0.1:9000
; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
; When set, listen.owner and listen.group are ignored
-;listen.acl_users =
+;listen.acl_users = apache,nginx
;listen.acl_groups =
; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
@@ -411,7 +411,7 @@ php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 128M
-; Set session path to a directory owned by process user
+; Set data paths to directories owned by process user
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache