How to Install mod_security in CentOS/RHEL ?

Install mod_security in CentOS
This article will help you to know how to install mod_security in CentOS/RHEL. Mod_Security supplies an array of request filtering and other security features for Apache.

Mod_Security supplies an array of request filtering and other security features for Apache. Please follow the below steps to install mod_security in CentOS/RHEL. We are using yum because that is the easy way. We can do this within less than a minute.

Enable Atomic repo.

wget -q -O - http://www.atomicorp.com/installers/atomic | sh

 

Now let’s install ModSecurity

yum install mod_security

 

That’s it! It will set up and enable some default mod_security rules. More mod_security rules are available here: ModSecurity Core Rule Set

 

So that’s how you install mod_security in Linux.

Share this post

Services to Explore

Stay up to date!

Stay up to date with the Web Hosting, Cloud and Server Management Industry News and Tutorials!

We will send you only the relevant emails, and we respect your privacy. Please review our privacy policy for more info.

Linux Management Services

Focus on your business, and let us take care of your Linux Servers!
From what you are reading, it seems you are interested in Linux and related technologies. If you have a moment to spare, please take a look at our Linux Management Services plan, which might interest you even more!
Linux Management Plan

Value-Added Services

We have services that can help you run a successful business. With us, you don't have to worry about these areas because our experts will take care of it for you.

ServerHealers uses cookies.