Guest User

Untitled

a guest
Sep 3rd, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59)
  2. Copyright (c) 1997-2013 The PHP Group
  3. Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
  4. with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
  5. with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.12, Copyright (c) 2002-2015, by ionCube Ltd.
  6. with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
  7.  
  8. <?php
  9. error_reporting(E_ALL & ~E_NOTICE);
  10.  
  11. echo '<pre>';
  12. echo 'Clearing XCache...';
  13.  
  14. for ($x = 0, $total = xcache_count(XC_TYPE_VAR); $x < $total; $x++)
  15. {
  16. xcache_clear_cache(XC_TYPE_VAR, $x);
  17. echo "n.";
  18. }
  19.  
  20. echo "nCompleted</pre>";
  21.  
  22. [xcache-common]
  23. ;; non-Windows example:
  24. extension = "./usr/lib64/php/modules/xcache.so"
  25. ;; Windows example:
  26. ; extension = php_xcache.dll
  27.  
  28. [xcache.admin]
  29. xcache.admin.enable_auth = "Off"
  30.  
  31. ; use http://xcache.lighttpd.net/demo/cacher/mkpassword.php to generate your encrypted password
  32. xcache.admin.user = "admin"
  33. xcache.admin.pass = "md5$password_removed"
  34.  
  35. [xcache]
  36. ; ini only settings, all the values here is default unless explained
  37.  
  38. ; select low level shm implemenation
  39. xcache.shm_scheme = "mmap"
  40. ; to disable: xcache.size=0
  41. ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
  42. xcache.size = 60M
  43. ; set to cpu count (cat /proc/cpuinfo |grep -c processor)
  44. xcache.count = 2
  45. ; just a hash hints, you can always store count(items) > slots
  46. xcache.slots = 8K
  47. ; ttl of the cache item, 0=forever
  48. xcache.ttl = 0
  49. ; interval of gc scanning expired items, 0=no scan, other values is in seconds
  50. xcache.gc_interval = 0
  51.  
  52. ; same as aboves but for variable cache
  53. xcache.var_size = 4M
  54. xcache.var_count = 2
  55. xcache.var_slots = 8K
  56. ; default value for $ttl parameter of xcache_*() functions
  57. xcache.var_ttl = 7200
  58. ; hard limit ttl that cannot be exceed by xcache_*() functions. 0=unlimited
  59. xcache.var_maxttl = 14400
  60. xcache.var_gc_interval = 300
  61.  
  62. ; mode:0, const string specified by xcache.var_namespace
  63. ; mode:1, $_SERVER[xcache.var_namespace]
  64. ; mode:2, uid or gid (specified by xcache.var_namespace)
  65. xcache.var_namespace_mode = 0
  66. xcache.var_namespace = ""
  67.  
  68. ; N/A for /dev/zero
  69. xcache.readonly_protection = Off
  70. ; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite)
  71. ; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection
  72. ; different process group of php won't share the same /tmp/xcache
  73. ; for win32, xcache.mmap_path=anonymous map name, not file path
  74. xcache.mmap_path = "/dev/zero"
  75.  
  76.  
  77. ; Useful when XCache crash. leave it blank(disabled) or "/tmp/phpcore/" (writable by php)
  78. xcache.coredump_directory = ""
  79. ; Windows only. leave it as 0 (default) until you're told by XCache dev
  80. xcache.coredump_type = 0
  81.  
  82. ; disable cache after crash
  83. xcache.disable_on_crash = Off
  84.  
  85. ; enable experimental documented features for each release if available
  86. xcache.experimental = Off
  87.  
  88. ; per request settings. can ini_set, .htaccess etc
  89. xcache.cacher = On
  90. xcache.stat = On
  91. xcache.optimizer = On
  92.  
  93. [xcache.coverager]
  94. ; enabling this feature will impact performance
  95. ; enabled only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value"
  96.  
  97. ; per request settings. can ini_set, .htaccess etc
  98. ; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions
  99. xcache.coverager = Off
  100. xcache.coverager_autostart = On
  101.  
  102. ; set in php ini file only
  103. ; make sure it's readable (open_basedir is checked) by coverage viewer script
  104. xcache.coveragedump_directory = "/tmp/pcov/"
  105.  
  106. # find -name *xcache.ini
  107. ./opt/plesk/php/5.3/etc/php.d/40-xcache.ini
  108. ./opt/plesk/php/5.2/etc/php.d/40-xcache.ini
  109. ./opt/plesk/php/5.4/etc/php.d/40-xcache.ini
  110. ./etc/php.d/axcache.ini
  111. ./usr/local/src/xcache-3.2.0/xcache.ini
  112.  
  113. # find -name xcache.so
  114. ./opt/plesk/php/5.3/lib64/php/modules/xcache.so
  115. ./opt/plesk/php/5.2/lib64/php/modules/xcache.so
  116. ./opt/plesk/php/5.4/lib64/php/modules/xcache.so
  117. ./usr/lib64/php/modules/xcache.so
  118. ./usr/local/src/xcache-3.2.0/.libs/xcache.so
  119. ./usr/local/src/xcache-3.2.0/modules/xcache.so
Add Comment
Please, Sign In to add comment