How To Install mod_security3 on Fedora 36

In this tutorial we learn how to install mod_security3 in Fedora 36. mod_security3 is ModSecurity v3 Apache Connector

Introduction

In this tutorial we learn how to install mod_security3 on Fedora 36.

What is mod_security3

The ModSecurity-apache connector is the connection point between Apache and libmodsecurity (ModSecurity v3). Said another way, this project provides a communication channel between Apache and libmodsecurity. This connector is required to use LibModSecurity with Apache.

We can use yum or dnf to install mod_security3 on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mod_security3.

Install mod_security3 on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mod_security3 using dnf by running the following command:

sudo dnf -y install mod_security3

Install mod_security3 on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mod_security3 using yum by running the following command:

sudo yum -y install mod_security3

How To Uninstall mod_security3 on Fedora 36

To uninstall only the mod_security3 package we can use the following command:

sudo dnf remove mod_security3

mod_security3 Package Contents on Fedora 36

/etc/httpd/conf.d/mod_security3.conf
/etc/httpd/conf.modules.d/10-mod_security3.conf
/etc/httpd/modsecurity.d
/etc/httpd/modsecurity.d/activated_rules
/etc/httpd/modsecurity.d/local_rules
/usr/lib/.build-id
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/13ce22ee672cd4e4a4bbd605b64b5e617e3be2
/usr/lib64/httpd/modules/mod_security3.so
/usr/share/doc/mod_security3
/usr/share/doc/mod_security3/README.md
/usr/share/licenses/mod_security3
/usr/share/licenses/mod_security3/LICENSE
/var/lib/mod_security3

References

Summary

In this tutorial we learn how to install mod_security3 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).