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