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

Invironment: openshift Zend-6.1+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

edit Makefile

replace all “/usr/local/zend” with “/usr/local/zend-server-6-php-5.4”

make

edit xcache.ini to adjust your need

cp xcache.ini $HOME/zend/php-5.4/etc/conf.d/xcache.ini

finally remember add this rnv with rhc

rhc env set OPENSHIFT_PHP_APC_ENABLED=false

to disable openshift’s APC accelater or Xcache make no effect.

发表评论

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