Current time: 11-25-2024, 10:48 AM Hello There, Guest! (LoginRegister)


Post Reply 
Disable or uninstall mod_security
Author Message
situ Offline
Newbie
*

Posts: 9
Joined: Mar 2008
Reputation: 0
Post: #1
Disable or uninstall mod_security
Dear,
The contact and I need to disable or uninstall mod_security which install using the tutorial. (use google translator)

Greetings.
02-18-2009 10:02 PM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #2
RE: Disable or uninstall mod_security
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.
02-18-2009 11:17 PM
Find all posts by this user Quote this message in a reply
situ Offline
Newbie
*

Posts: 9
Joined: Mar 2008
Reputation: 0
Post: #3
RE: Disable or uninstall mod_security
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
(This post was last modified: 02-18-2009 11:50 PM by situ.)
02-18-2009 11:34 PM
Find all posts by this user Quote this message in a reply
situ Offline
Newbie
*

Posts: 9
Joined: Mar 2008
Reputation: 0
Post: #4
RE: Disable or uninstall mod_security
what?
02-19-2009 12:13 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #5
RE: Disable or uninstall mod_security
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
02-19-2009 12:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
situ Offline
Newbie
*

Posts: 9
Joined: Mar 2008
Reputation: 0
Post: #6
RE: Disable or uninstall mod_security
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.
(This post was last modified: 02-19-2009 02:11 AM by situ.)
02-19-2009 01:20 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)