Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

5.19. XCache

5.19.1. apt-get

sudo apt-get install php5-xcache
			

5.19.2. make

# 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
# /srv/php/bin/phpize
# ./configure --enable-xcache
# ./configure --enable-xcache --with-php-config=/srv/php/bin/php-config
# make
# make install

# mv /srv/php-5.3.5/lib/php/extensions/no-debug-non-zts-20090626/xcache.so  /srv/php-5.3.5/lib/php/extensions/
# mkdir -p /srv/php/etc/conf.d/
			

xcache.ini

			
cat > /srv/php/etc/conf.d/xcache.ini <<EOF
[xcache-common]
zend_extension=/srv/php-5.3.5/lib/php/extensions/xcache.so

[xcache.admin]
xcache.admin.user = "xcache"
xcache.admin.pass = "bed128365216c019988915ed3add75fb"

[xcache]
xcache.size  = 64M
xcache.count = 24
xcache.gc_interval = 300
xcache.var_size  = 16M
xcache.var_count = 24
xcache.var_gc_interval = 300
xcache.readonly_protection = On
xcache.coredump_directory =   ""
xcache.optimizer = On

[xcache.coverager]
xcache.coverager = On
xcache.coveragedump_directory = ""
EOF
			
			
# /srv/php/bin/php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
XCache
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
XCache