Installing Mod_Security on CentOS Server

For those who might not be aware, ModSecurity is an application firewall that helps in protecting the server from various type of script exploits that may be found within the web applications. With it, server admins will harden the security of the server, adding an increased protecting layer to the network firewall.

Below are the step that explain how to Install ModSecurity on CentOS Dedicated Server ?

Step i : You need to hit the below command to add the ModSecurity repository manually

cd /etc/yum.repos.d

Step ii : Now move along with creating a file named as utterramblings.repo

touch utterramblings.repo

Step iii : To the file with “vi” or “nano” you need to make amendments, with including the below stated information :

[utterramblings]

 

name=Jason’s Utter Ramblings Repo

 

baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/

 

enabled=1

 

gpgcheck=1

 

gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Step iv : Then, for installing the packages onto your server run the below command :

yum install mod_security

With a functioning version of mod_security installed enable it and can be readily used over your Apache web server.

Step v : According to your requirements configure mod_security.

It would get updated automatically with the other updates of yum is that the benefits of compiling mod_security in a yum repository.

For any assistance, please free feel to contact our 24×7 HelpDesk either via. Live Chat or by sending an email to support[@]ownwebservers.com.