apache + mod_security recompile issue

MMarko

Verified User
Joined
May 10, 2006
Messages
75
Location
eu
Hi,

recently I had nginx + apache + mod php setup with modsecurity everything worked just fine. Then changed setup apache event + php fpm, rebuilt everything including mod security but apache would not start unless I disabled mod security in its config.

Tried numerous recompilations and config rebuilds, nothing. Apache just wont start with mod security on. Ruleset is Comodo ModSecurity Rule Set: 1.233 I have also tried to recompile libxml2 and libxslt, they are latest ver libxml2: 2.9.10 and libxslt: 1.1.34

Also could be of some interest - new_xml2=yes Any help would be appreciated.

Does anyone have any idea what to do next?

thanks
 
I think it is defunct.

You may have some old entries in your options.conf or some old mirrors set.

You also may have some custom mods in the php file. OR mod_ruid still on


Code:
cd /usr/local/directadmin/custombuild
./build set_fastest
./build clean
./build update
./build set php1_mode php-fpm
./build set php2_mode php-fpm
./build set php3_mode php-fpm
./build set php4_mode php-fpm
./build set mod_ruid2 no
./build set htscanner yes
./build mod_htscanner2
./build php
./build rewrite_confs
 
Last edited:
Seems that problem occurs only when comodo ruleset is used. Does anyone else had similar issue?
 
Looks like it

DA suggested using owasp
 
Solution is to run:

bash /usr/local/cwaf/scripts/uninstall_cwaf.sh

and then ./build modsecurity_rules Problem occurs only if you use comodo ruleset.
 
Back
Top