Linux Install PHP accelerator xcache

Source: Internet
Author: User

Linux Install PHP accelerator xcache

XCache is a fast and stable PHP Opcoolcode cache. Good testing and stable operation on large-flow/high-load production machines. Tested and supported on (on Linux) the latest release versions of all current PHP branches, such as Php_4_3 php_4_4 php_5_0 php_5_1 php_5_2 HEAD (6.x), and support for thread safety/windows. Better than similar opcoolcode buffers, such as the ability to quickly follow up on PHP versions. The following describes how to install the configuration.
1, installation XCache

    1. wget http://xcache.lighttpd.net/pub/Releases/1.3.2/xcache-1.3.2.tar.gz
    2. TAR-ZXVF xcache-1.3.2.tar.gz
    3. CD xcache-1.3.2
    4. Phpize
    5. ./configure--enable-xcache
    6. Make
    7. Make install

2, Configuration XCache
Open the php.ini file and add the following code:

  1. [Xcache-common]
  2. ; Change me-64 bit PHP =/usr/lib64/php/modules/xcache.so
  3. ; php = +/usr/lib/php/modules/xcache.so
  4. Zend_extension =/usr/lib64/php/modules/xcache.so
  5. [Xcache.admin]
  6. Xcache.admin.auth = On
  7. Xcache.admin.user = "MOo"
  8. ; Xcache.admin.pass = MD5 ($your _password)
  9. Xcache.admin.pass = ""
  10. [XCache]
  11. Xcache.shm_scheme = "Mmap"
  12. Xcache.size = 32M
  13. Xcache.count = 1
  14. Xcache.slots = 8K
  15. Xcache.ttl = 3600
  16. Xcache.gc_interval = 300
  17. ; Same as aboves but for variable cache
  18. ; If you don't know for sure so need this and you probably don ' t
  19. Xcache.var_size = 0M
  20. Xcache.var_count = 1
  21. Xcache.var_slots = 8K
  22. Xcache.var_ttl = 0
  23. Xcache.var_maxttl = 0
  24. Xcache.var_gc_interval = 300
  25. ; N/A For/dev/zero
  26. Xcache.readonly_protection = Off
  27. Xcache.mmap_path = "/dev/zero"
  28. Xcache.cacher = On
  29. Xcache.stat = On

Note Modify zend_extension =/usr/lib64/php/modules/xcache.so as the correct path.
Configuration instructions for details: Http://xcache.lighttpd.net/wiki/XcacheIni

Reprint please indicate the article source: "https://www.centos.bz/2011/10/linux-install-php-accelerator-xcache/"

Linux Install PHP accelerator xcache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.