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