Install XCache 3.1.0 from souce on PHP 5.4.28

I have a staging server. I have installed php5.3, 5.4, and 5.5 on it. Today I tried to install XCache 3.1.0 on it with PHP 5.4.28.

First, I recompiled the PHP 5.4.28 with more features. So noted below:

1) Install additional required dev packages

<br />
yum install gmp gmp-devel<br />

2) Compile and install php 5.4.28

<br />
cd php-5.5.12<br />
./configure --prefix=/usr/local/php54 \<br />
    --with-config-file-path=/etc/php54 \<br />
    --with-config-file-scan-dir=/etc/php54/php.d \<br />
    --with-libdir=lib64 \<br />
    --with-mysql \<br />
    --with-mysqli \<br />
    --enable-mbstring \<br />
    --disable-debug \<br />
    --disable-rpath \<br />
    --with-bz2 \<br />
    --with-curl \<br />
    --with-gettext \<br />
    --with-iconv \<br />
    --with-openssl \<br />
    --with-gd \<br />
    --with-mcrypt \<br />
    --with-pcre-regex \<br />
    --with-zlib \<br />
    --enable-cgi \<br />
    --enable-exif \<br />
    --enable-zip \<br />
    --with-gmp \<br />
    --enable-ftp \<br />
    --enable-shmop \<br />
    --enable-sockets<br />
make<br />
make install<br />

Restart Apache

<br />
service httpd restart<br />

Then, I start to install XCache from source, the latest version of XCache is 3.1.0.

3) Download and decompress it.

<br />
wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz<br />
tar -xvzf xcache-3.1.0.tar.gz<br />

4) Compile XCache based on current PHP 5.4.28 installation

<br />
cd xcache-3.1.0<br />
/usr/local/php54/bin/phpize<br />
./configure --enable-xcache --with-php-config=/usr/local/php54/bin/php-config<br />
make<br />
make install<br />
cp xcache.ini /etc/php54/php.d/xcache.ini<br />
service httpd restart<br />

Then reload the phpinfo page and get following information.

web2-php54-fastcgi-withxcache

And XCache web interface:

xcache-3.1.0-php5.4.28