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