Home > Uncategorized > Installing Xcache From source

Installing Xcache From source

In this post, the steps to install xcache is mentioned.

Steps:
1) Download and extract Xcache source

——————————————————-
wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
tar xzf xcache-1.3.0.tar.gz
cd xcache-1.3.0
——————————————————-

2) Use phpize to create the configure file. The “php-devel”(PHP development) package needs to be present in the server to perform this work. After that perform the normal configure, make and make install steps.

——————————————————-
phpize –clean phpize
mkdir /usr/local/xcache-1.3.0
./configure –enable-xcache –prefix=/usr/local/xcache-1.3.0 –with-php-config=`which php-config`
make && make install
——————————————————-

Once make install is completed and if xcache is successfully compiled, then something like the one pasted below will be displayed.

——————————————————-
Installing shared extensions: /opt/php-fpm/lib/php/extensions/no-debug-non-zts-20060613/
——————————————————-

Also one xcache.ini file will be present inside the directory where we performed make and make install. Open this file and then go to the line containing the attribute “zend_extension”. Assign the complete location of “xcache.so” to “zend_extension”.

eg:
——————————————————-
zend_extension = /opt/php-fpm/lib/php/extensions/no-debug-non-zts-20060613/xcache.so
——————————————————-

After that find the configuration file of php and then append “xcache.ini” to it.

——————————————————-
[root@xcache-1.3.0 ~]# php -i|grep “Configuration File”
Configuration File (php.ini) Path => /etc/php.ini
[root@xcache-1.3.0 ~]# cp -p /etc/php.ini /etc/php.ini.bak`date +%F`
[root@xcache-1.3.0 ~]# cat xcache.ini >> /etc/php.ini
[root@xcache-1.3.0 ~]#
——————————————————-

Once this is completed verify the setup using the “php -v” command.

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: