I was trying to install Memcache from cPanel from yesterday night but it seems to be sucks when installing from cPanel control panel.
Hence, I am sharing the step as below which I used to compiled manually from the shell.
Create a temporary folder
1. As it is a manually work, you might want to clear the source file after the installation, so create a folder as command below.
cd ~/memcache wget http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz tar zxvf libevent-1.4.14b-stable.tar.gz cd libevent-1.4.14b-stable ./configure make make install
Now, install the memcache and get the latest version from their site.
cd ~/memcache wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz tar zxvf memcached-1.4.5.tar.gz cd memcached-1.4.5 ./configure --with-lib-event=/usr/local/ make make install
Install PHP Memcache
Now, install PECL Memcache and get the latest version.
cd ~/memcache wget http://pecl.php.net/get/memcache-2.2.6.tgz tar zxvf memcache-2.2.6.tgz cd memcache-2.2.6 phpize ./configure make make install vi /usr/local/lib/php.ini
Find the extension as below and if it is not existed, add it in the php.ini.
Restart the Apache services.
service httpd restart