How to install memcached and extension for php in Centos server

by laks 2012-07-22 17:57:05

Memcached high-performance memory object caching system, It is often used to speed up dynamic database driven websites by caching data.

Now, i have given the steps of how to install the memcached and extension for php.

Steps:

Download the repo from the EPEL.

#rpm -Uhv http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

And use yum command to install the memcahed

#yum -y install memcached

start the memcached service as follow,

#/etc/init.d/memcached start

Now, Install the memcached php extension

Download the memcached extension,

#wget http://acelnmp.googlecode.com/files/memcache-3.0.6.tgz

Extract the .tgz file as follow command,

#tar -xvf memcache-3.0.6.tgz

#cd memcache-3.0.6

#phpize && ./configure --enable-memcache && make

#make install

After installing the memcache php enable the extension on php.ini as
follow.

#vim /etc/php.ini

"extension="memcache.so"

Finally, restart the httpd server and memcached.
Memcached installed and configured in your server.

Note : # symbols indicate to command
1110
like
0
dislike
0
mail
flag

You must LOGIN to add comments