ispCP - Board - Support
Disable or uninstall mod_security - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Disable or uninstall mod_security (/thread-5757.html)



Disable or uninstall mod_security - situ - 02-18-2009 10:02 PM

Dear,
The contact and I need to disable or uninstall mod_security which install using the tutorial. (use google translator)

Greetings.


RE: Disable or uninstall mod_security - Lucan - 02-18-2009 11:17 PM

Some more information please, which OS, which ispcp RC?

Try
a2dismod mod_security2
or
a2dismod mod_security


Maybe that will disable mod_security.

You have to restart apache after this change.



For removing mod_security just follow every step you did with the howto and change everything as it was at the native configs etc.


RE: Disable or uninstall mod_security - situ - 02-18-2009 11:34 PM

l disabled mod_security.
kabuto:~# a2dismod mod-security2
Module mod-security2 disabled; run /etc/init.d/apache2 force-reload to fully disable.

When i Restart the apache service, I get the following error:
kabuto:~# apache2ctl restart
Syntax error on line 53 of /etc/modsecurity2/modsecurity_crs_10_config.conf:
Invalid command 'SecRuleEngine', perhaps misspelled or defined by a module not included in the server configuration

Line 53:
SecRuleEngine On


RE: Disable or uninstall mod_security - situ - 02-19-2009 12:13 AM

what?


RE: Disable or uninstall mod_security - BeNe - 02-19-2009 12:46 AM

run
Code:
etc/init.d/apache2 force-reload
to fully disable.
But this _should_ be similar to apache2ctl restart.
Maybe it helps.
Is there an other config that loads mod_security on your Server ?
Take a lookt at apache2/mods-enabled/

Greez BeNe


RE: Disable or uninstall mod_security - situ - 02-19-2009 01:20 AM

Apache2/mods-enabled:
kabuto:/etc/apache2/mods-enabled# cat mod-security2.load
LoadFile /usr/lib/libxml2.so
LoadFile /usr/lib/liblua5.1.so.0
LoadModule security2_module /usr/lib/apache2/modules/mod_security2.so
I could fix it, but I would say if either:
- Comment out the lines of the following files:
/etc/apache2/mods-enabled/mod-security2.load
/etc/apache2/conf.d/mod-security2.conf

a2dismod mod-security2
apache2ctl restart


It worked.