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