First you need to compile Apache to enable the below modules on DirectAdmin control panel
mod_cachemod_disk_cachemod_mem_cachemod_file_cache Edit the
configure.apache file and add the needed modules
# cd /usr/local/directadmin/custombuild/configure/ap2# vi configure.apacheAdd 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 !!