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