192 |
- |
1 |
; Enable Zend OPcache extension module
|
|
|
2 |
zend_extension=opcache
|
|
|
3 |
|
|
|
4 |
; Determines if Zend OPCache is enabled
|
|
|
5 |
opcache.enable=1
|
|
|
6 |
|
|
|
7 |
; Determines if Zend OPCache is enabled for the CLI version of PHP
|
|
|
8 |
opcache.enable_cli=1
|
|
|
9 |
|
|
|
10 |
; The OPcache shared memory storage size.
|
|
|
11 |
;opcache.memory_consumption=128
|
|
|
12 |
|
|
|
13 |
; The amount of memory for interned strings in Mbytes.
|
|
|
14 |
;opcache.interned_strings_buffer=8
|
|
|
15 |
|
|
|
16 |
; The maximum number of keys (scripts) in the OPcache hash table.
|
|
|
17 |
; Only numbers between 200 and 1000000 are allowed.
|
|
|
18 |
;opcache.max_accelerated_files=10000
|
|
|
19 |
|
|
|
20 |
; The maximum percentage of "wasted" memory until a restart is scheduled.
|
|
|
21 |
;opcache.max_wasted_percentage=5
|
|
|
22 |
|
|
|
23 |
; When this directive is enabled, the OPcache appends the current working
|
|
|
24 |
; directory to the script key, thus eliminating possible collisions between
|
|
|
25 |
; files with the same name (basename). Disabling the directive improves
|
|
|
26 |
; performance, but may break existing applications.
|
|
|
27 |
;opcache.use_cwd=1
|
|
|
28 |
|
|
|
29 |
; When disabled, you must reset the OPcache manually or restart the
|
|
|
30 |
; webserver for changes to the filesystem to take effect.
|
|
|
31 |
;opcache.validate_timestamps=1
|
|
|
32 |
|
|
|
33 |
; How often (in seconds) to check file timestamps for changes to the shared
|
|
|
34 |
; memory storage allocation. ("1" means validate once per second, but only
|
|
|
35 |
; once per request. "0" means always validate)
|
|
|
36 |
;opcache.revalidate_freq=2
|
|
|
37 |
|
|
|
38 |
; Enables or disables file search in include_path optimization
|
|
|
39 |
;opcache.revalidate_path=0
|
|
|
40 |
|
|
|
41 |
; If disabled, all PHPDoc comments are dropped from the code to reduce the
|
|
|
42 |
; size of the optimized code.
|
|
|
43 |
;opcache.save_comments=1
|
|
|
44 |
|
|
|
45 |
; Allow file existence override (file_exists, etc.) performance feature.
|
|
|
46 |
;opcache.enable_file_override=0
|
|
|
47 |
|
|
|
48 |
; A bitmask, where each bit enables or disables the appropriate OPcache
|
|
|
49 |
; passes
|
|
|
50 |
;opcache.optimization_level=0x7FFFBFFF
|
|
|
51 |
|
|
|
52 |
; This hack should only be enabled to work around "Cannot redeclare class"
|
|
|
53 |
; errors.
|
|
|
54 |
;opcache.dups_fix=0
|
|
|
55 |
|
|
|
56 |
; The location of the OPcache blacklist file (wildcards allowed).
|
|
|
57 |
; Each OPcache blacklist file is a text file that holds the names of files
|
|
|
58 |
; that should not be accelerated.
|
|
|
59 |
opcache.blacklist_filename=/etc/php-zts.d/opcache*.blacklist
|
|
|
60 |
|
|
|
61 |
; Allows exclusion of large files from being cached. By default all files
|
|
|
62 |
; are cached.
|
|
|
63 |
;opcache.max_file_size=0
|
|
|
64 |
|
|
|
65 |
; Check the cache checksum each N requests.
|
|
|
66 |
; The default value of "0" means that the checks are disabled.
|
|
|
67 |
;opcache.consistency_checks=0
|
|
|
68 |
|
|
|
69 |
; How long to wait (in seconds) for a scheduled restart to begin if the cache
|
|
|
70 |
; is not being accessed.
|
|
|
71 |
;opcache.force_restart_timeout=180
|
|
|
72 |
|
|
|
73 |
; OPcache error_log file name. Empty string assumes "stderr".
|
|
|
74 |
;opcache.error_log=
|
|
|
75 |
|
|
|
76 |
; All OPcache errors go to the Web server log.
|
|
|
77 |
; By default, only fatal errors (level 0) or errors (level 1) are logged.
|
|
|
78 |
; You can also enable warnings (level 2), info messages (level 3) or
|
|
|
79 |
; debug messages (level 4).
|
|
|
80 |
;opcache.log_verbosity_level=1
|
|
|
81 |
|
|
|
82 |
; Preferred Shared Memory back-end. Leave empty and let the system decide.
|
|
|
83 |
;opcache.preferred_memory_model=
|
|
|
84 |
|
|
|
85 |
; Protect the shared memory from unexpected writing during script execution.
|
|
|
86 |
; Useful for internal debugging only.
|
|
|
87 |
;opcache.protect_memory=0
|
|
|
88 |
|
|
|
89 |
; Allows calling OPcache API functions only from PHP scripts which path is
|
|
|
90 |
; started from specified string. The default "" means no restriction
|
|
|
91 |
;opcache.restrict_api=
|
|
|
92 |
|
|
|
93 |
; Enables and sets the second level cache directory.
|
|
|
94 |
; It should improve performance when SHM memory is full, at server restart or
|
|
|
95 |
; SHM reset. The default "" disables file based caching.
|
|
|
96 |
; RPM note : file cache directory must be owned by process owner
|
|
|
97 |
; for mod_php, see /etc/httpd/conf.d/php.conf
|
|
|
98 |
; for php-fpm, see /etc/php-fpm.d/*conf
|
|
|
99 |
;opcache.file_cache=
|
|
|
100 |
|
|
|
101 |
; Enables or disables opcode caching in shared memory.
|
|
|
102 |
;opcache.file_cache_only=0
|
|
|
103 |
|
|
|
104 |
; Enables or disables checksum validation when script loaded from file cache.
|
|
|
105 |
;opcache.file_cache_consistency_checks=1
|
|
|
106 |
|
|
|
107 |
; Implies opcache.file_cache_only=1 for a certain process that failed to
|
|
|
108 |
; reattach to the shared memory (for Windows only). Explicitly enabled file
|
|
|
109 |
; cache is required.
|
|
|
110 |
;opcache.file_cache_fallback=1
|
|
|
111 |
|
|
|
112 |
; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
|
|
|
113 |
; This should improve performance, but requires appropriate OS configuration.
|
|
|
114 |
opcache.huge_code_pages=0
|
|
|
115 |
|
|
|
116 |
; Validate cached file permissions.
|
|
|
117 |
; Leads OPcache to check file readability on each access to cached file.
|
|
|
118 |
; This directive should be enabled in shared hosting environment, when few
|
|
|
119 |
; users (PHP-FPM pools) reuse the common OPcache shared memory.
|
|
|
120 |
;opcache.validate_permission=0
|
|
|
121 |
|
|
|
122 |
; Prevent name collisions in chroot'ed environment.
|
|
|
123 |
; This directive prevents file name collisions in different "chroot"
|
|
|
124 |
; environments. It should be enabled for sites that may serve requests in
|
|
|
125 |
; different "chroot" environments.
|
|
|
126 |
;opcache.validate_root=0
|
|
|
127 |
|
|
|
128 |
; If specified, it produces opcode dumps for debugging different stages of
|
|
|
129 |
; optimizations.
|
|
|
130 |
;opcache.opt_debug_level=0
|
|
|
131 |
|
|
|
132 |
; Specifies a PHP script that is going to be compiled and executed at server
|
|
|
133 |
; start-up.
|
|
|
134 |
; http://php.net/opcache.preload
|
|
|
135 |
;opcache.preload=
|
|
|
136 |
|
|
|
137 |
; Preloading code as root is not allowed for security reasons. This directive
|
|
|
138 |
; facilitates to let the preloading to be run as another user.
|
|
|
139 |
; http://php.net/opcache.preload_user
|
|
|
140 |
;opcache.preload_user=
|
|
|
141 |
|
|
|
142 |
; Prevents caching files that are less than this number of seconds old. It
|
|
|
143 |
; protects from caching of incompletely updated files. In case all file updates
|
|
|
144 |
; on your site are atomic, you may increase performance by setting it to "0".
|
|
|
145 |
;opcache.file_update_protection=2
|
|
|
146 |
|
|
|
147 |
; Absolute path used to store shared lockfiles (for *nix only).
|
|
|
148 |
;opcache.lockfile_path=/tmp
|