skimppimppin along! NEWS   FORUM   DOWNLOAD   LINKS    
HOME ACCOUNT PRIVATE MESSAGE  
Login
Username:

Password:


Lost Password?

Register now!

Main Menu

Search

skimpydog.com Forum Index
   Redhat Base
  mod_security2 aka modsec and mod_sec

Browsing this Thread:   1 Anonymous Users

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  3 Votes
mod_security2 aka modsec and mod_sec
#1
Webmaster
Joined: 2007/6/10
From Dallas, TX
Posts: 79
Level : 7
HP : 0 / 170
MP : 26 / 8767
EXP : 83
Group:
Webmasters
Registered Users
Offline
The mod_security2 home page is here:
http://modsecurity.org/

---- Step 1
------ Get your Deps:

---- RHEL4 & CentOS4

{
echo Install apache-devel
sleep 1
up2date -i httpd-devel
}

or
---- RHEL5 or CentOS5

{
echo Install apache-devel
Sleep 1
yum install httpd-devel
}

---- Step 2
------ The Build:

{
echo Stop Apache
sleep 1
/sbin/service httpd stop
mkdir /root/modsec2-build
cd /root/modsec2-build
echo Get Sources
sleep 1
wget https://bsn.breach.com/downloads/t=37e6b25df64e97d89066aed0ebe060a7/modsecurity-apache/modsecurity-apache_2.5.5.tar.gz
wget http://www.lua.org/ftp/lua-5.1.3.tar.gz
echo  Decompress sources
sleep 1
tar zxfv modsecurity-apache_2.5.5.tar.gz
tar zxfv lua-5.1.3.tar.gz
echo liblua installation
sleep 1
cd lua-5.1.3
make linux local
cd src
gcc -shared -o liblua5.1.3.so liblua.a
cp -p liblua5.1.3.so /usr/lib/liblua5.1.3.so
echo install mod_sec2
sleep 1
cd /root/modsec2-build/modsecurity-apache_2.5.5/apache2
./configure --with-apxs=/usr/sbin/apxs
make
make install
}


---- Step 3
------ Edit:

vi /etc/httpd/conf/httpd.conf

Add the following at the bottom of the LoadModules List (toward the top of the file) in this order:
---- RHEL4 & CentOS4
  LoadFile /usr/lib/libxml2.so
  LoadFile /usr/lib/liblua5.1.3.so
  LoadModule security2_module modules/mod_security2.so

---- Rhel5 & CentOS5
  LoadFile /usr/lib/libxml2.so
  LoadFile /usr/lib/liblua5.1.3.so
  LoadModule security2_module modules/mod_security2.so

---- Start up Apache
/sbin/service httpd start
Posted on: 2008/6/6 17:11
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.
Links