Saturday 23 February 2013

How to enable mod_cache, mod_disk_cache, mod_mem_cache, mod_file_cache on DirectAdmin

First you need to compile Apache to enable the below modules on DirectAdmin control panel

mod_cache
mod_disk_cache
mod_mem_cache
mod_file_cache

 Edit the configure.apache file and add the needed modules

# cd /usr/local/directadmin/custombuild/configure/ap2
# vi configure.apache

Add the below modules at the bottom of the file.

        "--enable-cache" \
        "--enable-mem-cache" \
        "--enable-disk-cache" \
        "--enable-file-cache"



Example of  configure.apache file :

# vi configure.apache

#!/bin/sh
"./configure" \
        "--prefix=/etc/httpd" \
        "--exec-prefix=/etc/httpd" \
        "--bindir=/usr/bin" \
        ........................................
         ..........................................
             .........................................
                .........................................

        "--with-ssl=/usr" \
        "--enable-headers"\
        "--enable-cache" \
        "--enable-mem-cache" \
        "--enable-disk-cache" \
        "--enable-file-cache"

Save and Exit.

Now, compile the Apache as below,

#  cd /usr/local/directadmin/custombuild
#  ./build apache

Command to check :
# httpd -l | grep mod_cache
  mod_cache.c

# httpd -l | grep mod_disk_cache
  mod_disk_cache.c


Thats worked for me !!


No comments:

Post a Comment