Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.95 KB | None | 0 0
  1. [root@cervant mysql]# cat /etc/php.d/10-opcache.ini
  2. ; Enable Zend OPcache extension module
  3. zend_extension=opcache.so
  4.  
  5. ; Determines if Zend OPCache is enabled
  6. opcache.enable=1
  7.  
  8. ; Determines if Zend OPCache is enabled for the CLI version of PHP
  9. ;opcache.enable_cli=0 my_edit
  10. opcache.enable_cli=1
  11.  
  12. ; The OPcache shared memory storage size.
  13. opcache.memory_consumption=512
  14.  
  15. ; The amount of memory for interned strings in Mbytes.
  16. opcache.interned_strings_buffer=8
  17.  
  18. ; The maximum number of keys (scripts) in the OPcache hash table.
  19. ; Only numbers between 200 and 100000 are allowed.
  20. opcache.max_accelerated_files=4000
  21.  
  22. ; The maximum percentage of "wasted" memory until a restart is scheduled.
  23. ;opcache.max_wasted_percentage=5
  24.  
  25. ; When this directive is enabled, the OPcache appends the current working
  26. ; directory to the script key, thus eliminating possible collisions between
  27. ; files with the same name (basename). Disabling the directive improves
  28. ; performance, but may break existing applications.
  29. ;opcache.use_cwd=1
  30.  
  31. ; When disabled, you must reset the OPcache manually or restart the
  32. ; webserver for changes to the filesystem to take effect.
  33. ;opcache.validate_timestamps=1
  34.  
  35. ; How often (in seconds) to check file timestamps for changes to the shared
  36. ; memory storage allocation. ("1" means validate once per second, but only
  37. ; once per request. "0" means always validate)
  38. opcache.revalidate_freq=60
  39. ;opcache.revalidate_freq=2 my_edit
  40.  
  41. ; Enables or disables file search in include_path optimization
  42. ;opcache.revalidate_path=0
  43.  
  44. ; If disabled, all PHPDoc comments are dropped from the code to reduce the
  45. ; size of the optimized code.
  46. ;opcache.save_comments=1
  47.  
  48. ; If enabled, a fast shutdown sequence is used for the accelerated code
  49. ;opcache.fast_shutdown=0 my_edit
  50. opcache.fast_shutdown=1
  51.  
  52. ; Allow file existence override (file_exists, etc.) performance feature.
  53. ;opcache.enable_file_override=0
  54.  
  55. ; A bitmask, where each bit enables or disables the appropriate OPcache
  56. ; passes
  57. ;opcache.optimization_level=0xffffffff
  58.  
  59. ;opcache.inherited_hack=1
  60. ;opcache.dups_fix=0
  61.  
  62. ; The location of the OPcache blacklist file (wildcards allowed).
  63. ; Each OPcache blacklist file is a text file that holds the names of files
  64. ; that should not be accelerated.
  65. opcache.blacklist_filename=/etc/php.d/opcache*.blacklist
  66.  
  67. ; Allows exclusion of large files from being cached. By default all files
  68. ; are cached.
  69. ;opcache.max_file_size=0
  70.  
  71. ; Check the cache checksum each N requests.
  72. ; The default value of "0" means that the checks are disabled.
  73. ;opcache.consistency_checks=0
  74.  
  75. ; How long to wait (in seconds) for a scheduled restart to begin if the cache
  76. ; is not being accessed.
  77. ;opcache.force_restart_timeout=180
  78.  
  79. ; OPcache error_log file name. Empty string assumes "stderr".
  80. ;opcache.error_log=
  81.  
  82. ; All OPcache errors go to the Web server log.
  83. ; By default, only fatal errors (level 0) or errors (level 1) are logged.
  84. ; You can also enable warnings (level 2), info messages (level 3) or
  85. ; debug messages (level 4).
  86. ;opcache.log_verbosity_level=1
  87.  
  88. ; Preferred Shared Memory back-end. Leave empty and let the system decide.
  89. ;opcache.preferred_memory_model=
  90.  
  91. ; Protect the shared memory from unexpected writing during script execution.
  92. ; Useful for internal debugging only.
  93. ;opcache.protect_memory=0
  94.  
  95. ; Allows calling OPcache API functions only from PHP scripts which path is
  96. ; started from specified string. The default "" means no restriction
  97. ;opcache.restrict_api=
  98.  
  99. ; Enables and sets the second level cache directory.
  100. ; It should improve performance when SHM memory is full, at server restart or
  101. ; SHM reset. The default "" disables file based caching.
  102. ; RPM note : file cache directory must be owned by process owner
  103. ;   for mod_php, see /etc/httpd/conf.d/php.conf
  104. ;   for php-fpm, see /etc/php-fpm.d/*conf
  105. ;opcache.file_cache=
  106.  
  107. ; Enables or disables opcode caching in shared memory.
  108. ;opcache.file_cache_only=0
  109.  
  110. ; Enables or disables checksum validation when script loaded from file cache.
  111. ;opcache.file_cache_consistency_checks=1
  112.  
  113. ; Implies opcache.file_cache_only=1 for a certain process that failed to
  114. ; reattach to the shared memory (for Windows only). Explicitly enabled file
  115. ; cache is required.
  116. ;opcache.file_cache_fallback=1
  117.  
  118. ; Validate cached file permissions.
  119. ; Leads OPcache to check file readability on each access to cached file.
  120. ; This directive should be enabled in shared hosting environment, when few
  121. ; users (PHP-FPM pools) reuse the common OPcache shared memory.
  122. ;opcache.validate_permission=0
  123.  
  124. ; Prevent name collisions in chroot'ed environment.
  125. ; This directive prevents file name collisions in different "chroot"
  126. ; environments. It should be enabled for sites that may serve requests in
  127. ; different "chroot" environments.
  128. ;opcache.validate_root=0
  129.  
  130. ; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
  131. ; This should improve performance, but requires appropriate OS configuration.
  132. opcache.huge_code_pages=1
  133. ; my_edit def=0
  134. ;
  135. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement