Mod_security config typo for mem_cache_module
-
On 2.0-ALPHA-ALPHA
built on Fri Aug 21 23:11:13 UTC 2009
FreeBSD 7.2-RELEASE-p3
with "Proxy Server with mod_security" version 0.1.0 (pkg_info reports apache-2.2.11_7 and mod_security-2.5.9)If you have the following error messages when starting the service:
Sep 2 09:08:45 myhostname php: /pkg_edit.php: The command '/usr/local/sbin/httpd -t' returned exit code '1', the output was 'httpd: Syntax error on line 78 of /usr/local/etc/apache22/httpd.conf: Can't locate API module structure `memcache_module' in file /usr/local/libexec/apache22/mod_memcache.so: Undefined symbol "memcache_module"'
Sep 2 09:08:45 myhostname php: /pkg_edit.php: apache_mod_security_package: There was an error parsing the Apache configuration: 1Then one needs to edit /usr/local/etc/apache22/httpd.conf and amend line 78
from
LoadModule memcache_module libexec/apache22/mod_mem_cache.so
to
LoadModule mem_cache_module libexec/apache22/mod_mem_cache.so
in order for /usr/local/sbin/httpd -t to succeed.
Nevertheless, the service is not starting. Nothing in system.log … and no apache log files created:ls -l /var/log/httpd-*
ls: No match.
I am a bit lost. Anyone here who was able to have this pkg working?
Tks and kind regards.Update: removing the package does not remove packages installed during the first install of modsecurity, like sqlite, mysql, postgresql, expat, perl, pcre, db41, apr, libiconv, apache2, and even modsecurity: they are all displayed by pkg_info.