Fist need to download pakages apr and apr-util

tar -xzf apr/apr-1.4.2.tar.gz
tar -xzf apr-util-1.3.10.tar.gz

cd apr-1.4.2
make install

Libraries have been installed in:

cd ..
cd apr-util-1.3.10
./configure –with-apr=/usr/local/apr/
make install

Libraries have been installed in:

Next need to build apr_memcache(required for memcache_cache)
tar -zxvf filename.tar.gz for gz
tar -jxvf filename.tar.bz2 for bz2
cd /directory

down load from
tar -jxvf filename.tar.bz2 for bz2
cd /directory  ./configure and make make install

Configuration summary for apr_memcache

* Version:                   0.7.0
* Prefix:                    /usr/local/apr

Libraries have been installed in:

installing memcache_cache
tar -jxvf mod_memcached_cache-0.1.0.tar.bz2
cd mod_memcached_cache-0.1.0

./configure –with-apxs=usr/local/apache2/bin/apxs –with-apr-memcache=/usr/local/apr/
make  (previous it dosent make error apr library not installed apr apr utility and finally installed apr-memcache,change the locations lib are a/apr/lib and apr_memcache is /apr/include)
make install

mod_memcached_cache    Version 0.1.0
for Apache 2.x    License: Apache 2 License
Last Updated September 22nd, 2007
mod_cache provider module for memcached storage
Requires apr_memcache
Module homepage at

This module allows your Apache 2.2.x installation to serve cached data quickly from one or more memcached server instances rather than from your file system. Like other caching modules available (mod_file_cache, mod_disk_cache, mod_mem_cache, etc.) this module lets you configure some basic parameters in your httpd.conf to enable caching based on specific criteria. Unlike the others, mod_memcache_cache allows cached data to be shared across multiple Apache instances.
Note that this module is different that the Apache distributions mod_mem_cache, which cache’s data in the running httpd process memory.
For more information on caching in Apache 2.2 see:

download from


modules availables:-

memcache_cache required to load these modules
so get the copied from a working server and added loadmodule in

<IfModule mod_cache.c>
<IfModule mod_mem_cache.c>
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048

finally in your httpd.conf
LoadModule cache_module modules/ LoadModule memcached_cache_module modules/  <IfModule mod_memcached_cache.c>    # enable caching of anything below /   CacheEnable memcached /
MemcachedCacheServer localhost:11211 localhost:11212  MemcachedCacheServer localhost:11211
MemcachedMaxServers 10
# min
MemcachedMinConnections 10
# soft max
MemcachedSMaxConnections 10
# hard max
MemcachedMaxConnections 10
# how long the number of extra connections will remain, in  seconds  MemcachedConnectionTTL 10
MemcachedCacheMinFileSize 1
MemcachedCacheMaxFileSize 1048576


Posted on December 12, 2013, in LInux Based, Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: