Cannot load mod_mem_cache.so Error : Solved


Error: Cannot load /etc/httpd/modules/mod_mem_cache.so

After upgrading  the fedora from 10 to 11, Apache server stopped working.

Error

While try starting the httpd service it gave the following error

#service httpd start

Starting httpd: httpd: Syntax error on line 197 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_mem_cache.so into server: /etc/httpd/modules/mod_mem_cache.so: cannot open shared object file: No such file or directory

 

Solution:

This is because one of the Apache module was uninstalled during the fedora upgrade.
Install the Missing Modules Mem Cache

Or Comment the following line in /etc/httpd/conf/httpd.cong apache started working

#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule mem_cache_module modules/mod_mem_cache.so

The changelog for the httpd rpm on F11 shows that we explicitly are not building mod_mem_cache or mod_file_cache as of httpd-2.2.11-8

reinstalling fedora-ds-admin-1.1.7-4.fc11 may also solve the problem