ModSecurity on Debian Squeeze

Discussion in 'Suggest HOWTO' started by Kozley, Oct 25, 2011.

  1. Kozley

    Kozley Member

  2. Mark_NL

    Mark_NL Member

  3. Kozley

    Kozley Member

    You does not read comments there. Read last comment:

    "Tried this on Squeeze for apache2:
    # apt-get install libapache2-mod-security
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package libapache2-mod-security


    So tried your one:
    apt-get install libapache-mod-security
    Which was installed into the mods-enabled dir.
    Sadly, your Sec* entries above fail:
    # /etc/init.d/apache2 restart
    Syntax error on line 219 of /etc/apache2/apache2.conf:
    Invalid command 'SecFilterEngine', perhaps misspelled or defined by a module not included in the server configuration
    Action 'configtest' failed."

    That could be problem if i do this. Because I need a tutorial for this.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Did you enable the module after installation? It's probably something like
    Code:
    a2enmod mod-security
    or
    Code:
    a2enmod security 
    Restart Apache afterwards.
     
  5. Kozley

    Kozley Member

    Okay. I tried to install modsecurity, it does works. i understand why it is problem what it say in comment on debian-administratation.com. Do I need any more to configure it to more security?
     
  6. manarak

    manarak Member

Share This Page