Xcache

XCache is a open-source opcode cacher, which means that it accelerates the performance of PHP on servers. It optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of page generation time by up to 5 times as it also optimizes many other aspects of php scripts and reduce server load.

Requirements
If phpize complains about being unable to find autoconf:

yum install autoconf

Installation with Lighttpd
Download the latest release of Xcache:

cd /extra/src
wget http://xcache.lighttpd.net/pub/Releases/3.0.1/xcache-3.0.1.tar.gz
tar zxf xcache-3.0.1.tar.gz
cd xcache-3.0.1
phpize --clean && phpize
./configure --enable-xcache
make
make install

Copy the default configuration into your php.ini:

cat xcache.ini >> /usr/local/lib/php.ini

Confirm that XCache is working:

php-cgi -v

The output will look something like:

PHP 5.2.17 (cgi-fcgi) (built: Feb 14 2011 14:10:26)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with XCache v1.3.1, Copyright (c) 2005-2010, by mOo

Restart lighty:

svc -t /service/lighttpd

Recent Updates

  • 7 months 1 week ago
  • 7 months 1 week ago
  • 7 months 1 week ago
    php 8.x
  • 7 months 1 week ago
    10.6.7
  • 7 months 1 week ago
    Drop Centos 5/6 stuff