Install PHP accelerator Xcache in Linux

Source: Internet
Author: User
XCache is a fast and stable PHPopcoolcode cache. it has been well tested and runs stably on high-traffic/high-load production machines. tested (on linux) and supports the latest versions of all current PHP branches, such as PHP_4_3PHP_4_4PHP...

XCache is a fast and stable PHP opcoolcode cache. it has been well tested and runs stably on high-traffic/high-load production machines. tests (on linux) and supports the latest 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 supports thread security/Windows. it is better than similar opcoolcode caches, for example, it can quickly follow up the PHP version. the following describes how to install the configuration.
1. install xcache

Wget http://xcache.lighttpd.net/pub/Releases/1.3.2/xcache-1.3.2.tar.gz
Tar-zxvf xcache-1.3.2.tar.gz
Cd xcache-1.3.2
Phpize
./Configure -- enable-xcache
Make
Make install www.2cto.com
2. configure xcache
Open the php. ini file and add the following code:

[Xcache-common]
; Change me-64 bit php =>/usr/lib64/php/modules/xcache. so
; 32 bit php =>/usr/lib/php/modules/xcache. so
Zend_extension =/usr/lib64/php/modules/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 = 32 M
Xcache. count = 1
Xcache. slots = 8 K
Xcache. ttl = 3600
Xcache. gc_interval = 300
 
; Same as aboves but for variable cache
; If you don't know for sure that you need this, you probably don't
Xcache. var_size = 0 M
Xcache. var_count = 1
Xcache. var_slots = 8 K
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
Note that zend_extension =/usr/lib64/php/modules/xcache. so is the correct path.

Related Article

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.