Installing PHP Accelerator components under Linux XCache

Source: Internet
Author: User
Tags zend

Here is the stable version of the 1.2.2 version, 2.0 version of the instability.
wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz
TAR-ZXF xcache-1.2.2.tar.gz
CD XCache
Phpize
./configure--enable-xcache
Make
Make install
Record the installation directory of the XCache.
Edit the php.ini file, add XCache as the Zend extension.
[Xcache-common]
;; Install as Zend Extension (recommended), normally "$extension _dir/xcache.so"
zend_extension =/Path/xcache.so
;; or install as extension, make sure your extension_dir setting are correct
; Extension = xcache.so
[Xcache.admin]
Xcache.admin.auth = On
Xcache.admin.user = "MOo"
; Xcache.admin.pass = MD5 ($your _password)
Xcache.admin.pass = ""
[XCache]
Xcache.shm_scheme = "Mmap"
Xcache.size = 32M
Xcache.count = 1
Xcache.slots = 8K
Xcache.ttl = 3600
Xcache.gc_interval = 300
; Same as aboves but for variable cache
; If you don't know for sure so need this and you probably don ' t
Xcache.var_size = 0M
Xcache.var_count = 1
Xcache.var_slots = 8K
Xcache.var_ttl = 0
Xcache.var_maxttl = 0
Xcache.var_gc_interval = 300
; N/A For/dev/zero
Xcache.readonly_protection = Off
Xcache.mmap_path = "/dev/zero"
Xcache.cacher = On
Xcache.stat = On
Then restart the Web server.
Php-v Test If there is a display XCache loading succeeded

Installing PHP Accelerator components under Linux 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.