install-config-modcache_cache

Fist need to download pakages apr and apr-util
———————————————
http://apr.apache.org/download.cgi
wget http://apache.technocozy.com//apr/apr-1.4.2.tar.gz
wget http://apache.technocozy.com//apr/apr-util-1.3.10.tar.gz

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

cd apr-1.4.2
./configure
make
make install

Libraries have been installed in:
/usr/local/apr/lib

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

Libraries have been installed in:
/usr/local/apr/lib

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 http://www.outoforder.cc/downloads/apr_memcache/apr_memcache-0.7.0.tar.bz2
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:
/usr/local/apr/lib

installing memcache_cache
—————————–
wget http://code.google.com/p/modmemcachecache/downloads/detail?name=mod_memcached_cache-0.1.0.tar.bz2
tar -jxvf mod_memcached_cache-0.1.0.tar.bz2
cd mod_memcached_cache-0.1.0

CFLAGS=-I/usr/local/apache2/modules/cache
./configure –with-apxs=usr/local/apache2/bin/apxs –with-apr-memcache=/usr/local/apr/
make  (previous it dosent make error apr library not found.so 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 http://code.google.com/p/modmemcachecache/

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: http://httpd.apache.org/docs/2.2/caching.html

download from
————
http://code.google.com/p/modmemcachecache/downloads/detail?name=mod_memcached_cache-0.1.0.tar.bz2

reff:-
http://www.helicontech.com/ape/doc/mod_cache.htm
http://www.kriyayoga.com/love_blog/post.php/1061
http://how2forge.net/caching-with-apaches-mod_cache-on-ubuntu-10.04
http://shop.clarins.com/manual/mod/mod_cache.html

http://sourceforge.net/projects/apachetoolbox/files/

modules availables:-
——————-
http://www.cpan.org/modules/by-module/Apache/
http://httpd.apache.org/modules/
http://httpd.apache.org/docs/2.0/mod/
http://modules.apache.org/

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

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

finally in your httpd.conf
LoadModule cache_module modules/mod_cache.so LoadModule memcached_cache_module modules/mod_memcached_cache.so  <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
</IfModule>

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: