Rebuilt apache twice now and made sure the following flags were included:
--with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr
After installing mod_security I'm still still getting:
#service httpd start
Starting httpd: httpd: Syntax error on line 507 of /usr/local/apache/conf/httpd.conf: Syntax error on line 5 of /usr/local/apache/conf.d/mod_security.conf: Cannot load modules/mod_security2.so into server: /usr/local/apache/modules/mod_security2.so: undefined symbol: apr_crypto_block_cleanup
[FAILED]
Apache will fail to start after mod_sec is installed, but if you start it from the command line it will start, but only once. Every time after I get the above error message.
Still no mod_security
have you tried to rebuild apache from cwp ?
check that apr, apr-util and devel packages are installed from cwp repository by using this command
yum list installed|grep apr
Yes, I've rebuilt apache with those flags here's the output of that command:
yum list installed|grep apr
apr.x86_64 1.5.2-2 @cwp
apr-devel.x86_64 1.5.2-2 @cwp
apr-util.x86_64 1.5.4-2 @cwp
apr-util-devel.x86_64 1.5.4-2 @cwp