/etc/httpd/ modules/ mod_security2.so load ap_get_server_banner undefined

dmgens

Well-Known Member
Dec 10, 2006
51
0
156
Folks:

Running apachectl configtest yeilds:

httpd: Syntax error on line 42 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /usr/local/apache/conf/modsec2.conf: Cannot load /etc/httpd/modules/mod_security2.so into server: /etc/httpd/modules/mod_security2.so: undefined symbol: ap_get_server_banner

but apache still loads and works how do I fix this undefined sysbol?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Is this version of mod_security the one provided by cPanel or one installed using something else? There was a bug noted a few places with this error, so I'm trying to determine if you've grabbed a bad copy of the mod_security2.so
 

DomineauX

Well-Known Member
PartnerNOC
Apr 12, 2003
429
11
168
Houston, TX
cPanel Access Level
Root Administrator
Seeing the same issue with easyapache modsec and if you comment it out from httpd.conf I get the following from mod_alias:

Invalid command 'Alias', perhaps misspelled or defined by a module not included in the server configuration

This is before and after running easyapache to build again in case the build from a week ago was bad.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please open up a ticket so we can investigate further. WHM > Support Center > Contact cPanel or using the link in my signature. Please post your ticket number here upon submitting one. Thanks!