Installing Memcached PHP Module on CentOS 5
Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Facebook, is world’s largest user of memcached. They use memcached to alleviate database load. They use more than 800 servers supplying over 28 terabytes of memory to its users.
How to install Memcached on CentOS 5.x?
wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-*.rpm
rpm --install rpmforge-release-*.rpm
yum install --enablerepo=rpmforge memcached
Now memcached is installed using yum. You can start memcached by using this command line:
/usr/bin/memcached -d -m 1024 -l 127.0.0.1 -p 11211 -u nobody
Installing PHP-Memcached extension module on CentOS 5
wget http://pecl.php.net/get/memcache
tar -xvf memcache-2.2.5.tgz (filename might be different here)
cd memcache-2.2.5
phpize && ./configure --enable-memcache && make && make install
vi /etc/php.ini
add
extension=memcache.so
Restart your httpd
/etc/init.d/httpd restart
Installation completed. Now you have php-memcached installed and memcached running on server.
Popularity: 1%



