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.
mkdir ~/memcache
Install LibEvent
To install memcache, you will need LibEvent, go to their site to get the latest version.
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
Install Memcache
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.
extension=memcache.so
Restart the Apache services.
service httpd restart
Thanks a TON for posting this. Everytime I switch hosts or deploy new machines, I need to ask my host to do this. Now I don’t. Thanks again. Awesome instructions.