安装Xcache,配置管理页面

安装:

# tar xf xcache-3.0.1.tar.gz
# cd xcache-3.0.1
# /usr/local/php/bin/phpize
# ./configure --enable-xcache --with-php-config=/usr/local/php/bin/php-config
# make && make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/

提供配置文件:

# cp xcache.ini /etc/php.d

PS:旧版本需要在配置文件中用zend_extension引擎启用:

zend_extension = /usr/local/php/lib/php/extensions/no-debug-zts-20131226/

启用zcache管理页面:复制 /usr/src/xcache-3.2.0/htdocs/目录到web目录下,并在配置文件中设置访问密码

[xcache.admin]
xcache.admin.enable_auth = On
 
; use http://xcache.lighttpd.net/demo/cacher/mkpassword.php to generate your encrypted password
xcache.admin.user = "shiina"
xcache.admin.pass = "b2e0162266097dc4f2f72baa77977357"
 
[xcache]
; ini only settings, all the values here is default unless explained
 
; select low level shm implemenation
xcache.shm_scheme =        "mmap"
; to disable: xcache.size=0  #关闭xcache只需将缓存大小设为0即可
; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
xcache.size  =               60M

你可能感兴趣的:(php,xcache)