Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Mod_security config typo for mem_cache_module

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    1 Posts 1 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RasKal
      last edited by

      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: 1

      Then 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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.