mod_mem_cache not loading

dcotruta used Ask the Experts™
I want to try out mod_mem_cache (although i've been warned it has problems).

On my managed server, Apache 2.2.4 was already installed, although without the extension.

I downloaded a clean distro of 2.2.4 from a local mirror, and used apxs to build the mod_mem_cache.c module (apxs -icA mod_mem_cache.c).

Compilation and installation went fine. When I tried uncommenting the LoadModule line in httpd.conf and then restarting Apache, I got the following error:

httpd: Syntax error on line 61 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/ into server: /usr/local/apache2/modules/ Undefined symbol "cache_find"

mod_cache is DEFINITELY loading before mod_mem_cache, so it's not a dependency problem. Any ideas?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ldd /usr/local/apache2/modules/

to see if you have all required libs in place


Already tried that and it came up with this...

ldd /usr/local/apache2/modules/

Top Expert 2015

Please post output from ErrorLog telling mod_mem_cache is not loaded - error code is very important.


Nevermind - I worked it out. I was compiling the module wrong in the first place by not adding all the required dependencies.

The solution is to build the mod_mem_cache.c module like this:

apxs -icA mod_mem_cache.c cache_cache.c cache_pqueue.c cache_hash.c

Since I've answered my own question I'll be applying for a refund.
Closed, 500 points refunded.
Community Support Moderator

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial