Avatar of dcotruta
dcotruta
 asked on

mod_mem_cache not loading

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 mod_mem_cache.so 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 mod_mem_cache.so 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/mod_mem_cache.so into server: /usr/local/apache2/modules/mod_mem_cache.so: Undefined symbol "cache_find"

mod_cache is DEFINITELY loading before mod_mem_cache, so it's not a dependency problem. Any ideas?
Unix OSWeb ServersApache Web Server

Avatar of undefined
Last Comment
Vee_Mod

8/22/2022 - Mon
SyncMaster

try
ldd /usr/local/apache2/modules/mod_mem_cache.so

to see if you have all required libs in place
dcotruta

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

ldd /usr/local/apache2/modules/mod_mem_cache.so
/usr/local/apache2/modules/mod_mem_cache.so:


gheist

Please post output from ErrorLog telling mod_mem_cache is not loaded - error code is very important.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
dcotruta

ASKER
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.
ASKER CERTIFIED SOLUTION
Vee_Mod

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.