Wow! Just Wow!
So apparently cPanel is shipping cPanel with mod_security disabled now? When the hell did that happen?
I've spent the last two hours trying to figure out why mod_security wasn't working on a new server. Turns out, SecRuleEngine is Off. WHO KNEW!?!
What's more, you can't enable it from the command line
/usr/local/cpanel/bin/whmapi1 modsec_batch_settings setting_id='2' state='On'
does nothing.
You have to log into the WHM, click on Security Center, click on ModSecurity Configuration and scroll down to Rules Engine and enable Process the rules.
I don't know why the hell you'd install mod_security and not enable it. But hey! Who doesn't like wasting time!
I ain't very happy right now. Two hours down the drain.
So apparently cPanel is shipping cPanel with mod_security disabled now? When the hell did that happen?
I've spent the last two hours trying to figure out why mod_security wasn't working on a new server. Turns out, SecRuleEngine is Off. WHO KNEW!?!
What's more, you can't enable it from the command line
/usr/local/cpanel/bin/whmapi1 modsec_batch_settings setting_id='2' state='On'
does nothing.
You have to log into the WHM, click on Security Center, click on ModSecurity Configuration and scroll down to Rules Engine and enable Process the rules.
I don't know why the hell you'd install mod_security and not enable it. But hey! Who doesn't like wasting time!
I ain't very happy right now. Two hours down the drain.
Last edited by a moderator: