LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-25-2007, 06:02 AM   #1
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 30
Thumbs down modsecurity error on Apache2


I have a strange problem with Apache 2.2. I've compiled mod_security, and the server loads the module:
Code:
krwawnik:~# apache2  -t -D DUMP_MODULES
Loaded Modules:
 core_module (static)
 (...)
 php5_module (shared)
 security2_module (shared)
 setenvif_module (shared)
 status_module (shared)
 userdir_module (shared)
Syntax OK
But when I put some config directives apache won't start and says:
Code:
Forcing reload of web server (apache2)...Syntax error on line 5 of /etc/apache2/mods-enabled/security.conf:
Invalid command 'SecFilterEngine', perhaps misspelled or defined by a module not included in the server configuration
 failed!
Have you got any ideas why it behaves like that ?

//---
Ooops I should rather put this topic in Linux-Software, sorry !

Last edited by avallach; 02-25-2007 at 06:06 AM.
 
Old 02-25-2007, 07:32 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,000
Blog Entries: 54

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
Have you got any ideas why it behaves like that ?
You didn't configure it properly. Here's an example. If you can't figure it out post your conf.
 
Old 02-25-2007, 09:02 AM   #3
shezaf
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
ModSecurity 2

You are loading ModSecurity 2, while the directive that cause the error is in ModSecurity 1 syntax. If you would like to get help on how to convert rules from ModSecurity 1 to 2, look for the mainling list and the blog on modsecurity.org

~ Ofer
ModSecurity Core Rule Set project leader
CTO, Breach Security
ofers@breach.com
 
Old 02-25-2007, 11:31 AM   #4
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Original Poster
Rep: Reputation: 30
Oh big thank you Haven't spotted that the syntax has changed.
You guys never fail ! Huge thx !
 
  


Reply

Tags
apache, security


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 Error? carlosinfl Linux - Server 5 01-12-2007 05:57 PM
ModSecurity SecFilterRemove gabsik Linux - Security 2 12-28-2006 01:03 AM
LXer: Breach Security Releases Latest Version of ModSecurity(TM) Open ... LXer Syndicated Linux News 0 10-16-2006 05:54 PM
SuSe Apache2 error: cannot adjust 'apache2' service sir_shunt Suse/Novell 14 04-18-2006 11:36 AM
Understanding an access log and what modsecurity did JediKnight2 Linux - Security 1 02-15-2006 05:33 AM


All times are GMT -5. The time now is 04:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration