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