987f92
; Enable Zend OPcache extension module
987f92
zend_extension=opcache
987f92
987f92
; Determines if Zend OPCache is enabled
987f92
opcache.enable=1
987f92
987f92
; Determines if Zend OPCache is enabled for the CLI version of PHP
987f92
;opcache.enable_cli=0
987f92
987f92
; The OPcache shared memory storage size.
987f92
opcache.memory_consumption=128
987f92
987f92
; The amount of memory for interned strings in Mbytes.
987f92
opcache.interned_strings_buffer=8
987f92
987f92
; The maximum number of keys (scripts) in the OPcache hash table.
987f92
; Only numbers between 200 and 1000000 are allowed.
987f92
opcache.max_accelerated_files=4000
987f92
987f92
; The maximum percentage of "wasted" memory until a restart is scheduled.
987f92
;opcache.max_wasted_percentage=5
987f92
987f92
; When this directive is enabled, the OPcache appends the current working
987f92
; directory to the script key, thus eliminating possible collisions between
987f92
; files with the same name (basename). Disabling the directive improves
987f92
; performance, but may break existing applications.
987f92
;opcache.use_cwd=1
987f92
987f92
; When disabled, you must reset the OPcache manually or restart the
987f92
; webserver for changes to the filesystem to take effect.
987f92
;opcache.validate_timestamps=1
987f92
987f92
; How often (in seconds) to check file timestamps for changes to the shared
987f92
; memory storage allocation. ("1" means validate once per second, but only
987f92
; once per request. "0" means always validate)
987f92
;opcache.revalidate_freq=2
987f92
987f92
; Enables or disables file search in include_path optimization
987f92
;opcache.revalidate_path=0
987f92
987f92
; If disabled, all PHPDoc comments are dropped from the code to reduce the
987f92
; size of the optimized code.
987f92
;opcache.save_comments=1
987f92
987f92
; If enabled, a fast shutdown sequence is used for the accelerated code
987f92
; Depending on the used Memory Manager this may cause some incompatibilities.
987f92
;opcache.fast_shutdown=0
987f92
987f92
; Allow file existence override (file_exists, etc.) performance feature.
987f92
;opcache.enable_file_override=0
987f92
987f92
; A bitmask, where each bit enables or disables the appropriate OPcache
987f92
; passes
987f92
;opcache.optimization_level=0xffffffff
987f92
987f92
;opcache.inherited_hack=1
987f92
;opcache.dups_fix=0
987f92
987f92
; The location of the OPcache blacklist file (wildcards allowed).
987f92
; Each OPcache blacklist file is a text file that holds the names of files
987f92
; that should not be accelerated.
987f92
opcache.blacklist_filename=/etc/php.d/opcache*.blacklist
987f92
987f92
; Allows exclusion of large files from being cached. By default all files
987f92
; are cached.
987f92
;opcache.max_file_size=0
987f92
987f92
; Check the cache checksum each N requests.
987f92
; The default value of "0" means that the checks are disabled.
987f92
;opcache.consistency_checks=0
987f92
987f92
; How long to wait (in seconds) for a scheduled restart to begin if the cache
987f92
; is not being accessed.
987f92
;opcache.force_restart_timeout=180
987f92
987f92
; OPcache error_log file name. Empty string assumes "stderr".
987f92
;opcache.error_log=
987f92
987f92
; All OPcache errors go to the Web server log.
987f92
; By default, only fatal errors (level 0) or errors (level 1) are logged.
987f92
; You can also enable warnings (level 2), info messages (level 3) or
987f92
; debug messages (level 4).
987f92
;opcache.log_verbosity_level=1
987f92
987f92
; Preferred Shared Memory back-end. Leave empty and let the system decide.
987f92
;opcache.preferred_memory_model=
987f92
987f92
; Protect the shared memory from unexpected writing during script execution.
987f92
; Useful for internal debugging only.
987f92
;opcache.protect_memory=0
987f92
987f92
; Allows calling OPcache API functions only from PHP scripts which path is
987f92
; started from specified string. The default "" means no restriction
987f92
;opcache.restrict_api=
987f92
987f92
; Enables and sets the second level cache directory.
987f92
; It should improve performance when SHM memory is full, at server restart or
987f92
; SHM reset. The default "" disables file based caching.
987f92
; RPM note : file cache directory must be owned by process owner
987f92
;   for mod_php, see /etc/httpd/conf.d/php.conf
987f92
;   for php-fpm, see /etc/php-fpm.d/*conf
987f92
;opcache.file_cache=
987f92
987f92
; Enables or disables opcode caching in shared memory.
987f92
;opcache.file_cache_only=0
987f92
987f92
; Enables or disables checksum validation when script loaded from file cache.
987f92
;opcache.file_cache_consistency_checks=1
987f92
987f92
; Implies opcache.file_cache_only=1 for a certain process that failed to
987f92
; reattach to the shared memory (for Windows only). Explicitly enabled file
987f92
; cache is required.
987f92
;opcache.file_cache_fallback=1
987f92
987f92
; Validate cached file permissions.
987f92
; Leads OPcache to check file readability on each access to cached file.
987f92
; This directive should be enabled in shared hosting environment, when few
987f92
; users (PHP-FPM pools) reuse the common OPcache shared memory.
987f92
;opcache.validate_permission=0
987f92
987f92
; Prevent name collisions in chroot'ed environment.
987f92
; This directive prevents file name collisions in different "chroot"
987f92
; environments. It should be enabled for sites that may serve requests in
987f92
; different "chroot" environments.
987f92
;opcache.validate_root=0
987f92
987f92
; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
987f92
; This should improve performance, but requires appropriate OS configuration.
987f92
opcache.huge_code_pages=0
987f92