We have enabled apache directives as follows:

ServerTokens OS

ServerSignature Off

I thought that ap_get_server_banner () could have porblems to get info because of that directives.

We have changed it with no success to avoid restarting apache problems. 

We still are looking for the solution.

Thanks in advance.

2013/6/27 Rainer Jung <rainer.jung@kippdata.de>
On 26.06.2013 17:17, Jose Pablo Valcárcel Lázaro wrote:
> Hi again.
> We have upgraded a server to mod_security 2.7.4. After that upgrade we
> have experienced some apache starting issue like:
> Trying to restart service httpd... httpd (pid 467) is running...
> Stopping httpd: [ OK ]
> Starting httpd: httpd: Syntax error on line 207 of
> /etc/httpd/conf/httpd.conf: Cannot load
> /usr/lib/httpd/modules/mod_security2.so into server:
> /usr/lib/httpd/modules/mod_security2.so: undefined symbol:
> ap_get_server_banner

ap_get_server_banner() is a function that was added to the Apache API in
Version 2.2.4. When building mod_security, it checks whether the
function is available. If not it replaces the call with the function
ap_get_server_version() which exists since much longer.

That means your mod_security was build against a newer 2.2 version (at
least 2.2.4) and you try to run it in an older one (at most 2.2.3).

This part of mod_security code was added in 2007 and first released with
mod_security 2.5.0. See "Used new Apache API calls to get the server
version/banner when available." in CHANGES:


Solution: make build environment consistent with runtime environment.



This SF.net email is sponsored by Windows:

Build for Windows Store.

mod-security-users mailing list
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs: