Without wasting much time, Let us get started!
Follow these simple instructions:
-
Step 1: Login into your WHM panel and using
easyapache
enableMemcache
-
Step 2: SSH into your server and fire this command
yum install memcached.x86_64 php-pecl-memcache.x86_64
-
Step 3: Go to
Software -> Module Installers -> PHP Pecl
, Search formemcache
and then install bothmemcache
&memcached
-
Step 4: Restart apache once, Fire:
service httpd restart
-
Step 5: Start memcache by firing this command:
memcached -d -m 512 -l 127.0.0.1 -p 11211 -u nobody
(d = daemon, m = memory, u = user, l = IP to listen to, p = port) -
Step 6: Check your memcached server is running successfully:
ps -eaf | grep memcached
All Done! If everything goes good, You should now be able to use memcached within your application.
Enjoy Caching :)
CENTOS 5.8
BTW, I needed to do this in order to install memcached
Add this to /etc/yum.conf
From: http://serverfault.com/questions/342826/problems-installing-memcached
Then
From: http://www.tecmint.com/install-and-enable-rpmforge-repository-in-rhel-centos-6-5-4/
Then
From: https://bugs.launchpad.net/libmemcached/+bug/1006230