Wednesday, May 21, 2008

mod_security on Debian Etch

For licensing reasons, mod_security is no longer in the Debian repositories. To add it there, add the following to /etc/apt/sources.list:

deb ./

Then add the gpg keys with the following commands:

gpg --keyserver --recv-keys C514AF8E4BA401C3

gpg --export -a C514AF8E4BA401C3 | sudo apt-key add -

sudo apt-get update

You can now install mod_security to Apache2 through apt:

apt-get install libapache2-mod-security2