Install XCache on OpenShift Online 2 (2)
Install XCache on OpenShift Online 2 (2)

Invironment: openshift php-5.4 small gear

wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.bz2
tar xf xcache-3.2.0.tar.bz2 ;rm xcache-3.2.0.tar.bz2
cd xcache-3.2.0
phpize
./configure --enable-xcache
make

edit xcache.ini to adjust your need

ln -s xcache.ini $OPENSHIFT_DATA_DIR/conf.d/xcache.ini

then make your own config file function

rhc env set PHP_INI_SCAN_DIR=$OPENSHIFT_DATA_DIR/conf.d/

You should replace $OPENSHIFT_DATA_DIR with absoulte path of you dir or or it won’t work

finally remember add this rnv with rhc

OPENSHIFT_PHP_OPCACHE_ENABLED=false

to disable openshift’s Zend OPcache accelater
Enjoy Xcache

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注