How To Install mod_log_post on Fedora 34

mod_log_post is Module for the Apache web server to log all HTTP POST messages

Introduction

In this tutorial we learn how to install mod_log_post on Fedora 34.

What is mod_log_post

mod_log_post can be used for logging all HTTP POST messages. The module is based on mod_security but in difference it never returns any error messages to the visitors of your websites. Logging of POST data can be very useful for debugging purposes or analyses. As the module is loaded and run after the SSL decryption, it even can log POST data transmitted before via SSL to the Apache web server.

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

Install mod_log_post on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install mod_log_post

Install mod_log_post on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install mod_log_post

How To Uninstall mod_log_post on Fedora 34

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

sudo dnf remove mod_log_post

mod_log_post Package Contents on Fedora 34

/etc/httpd/conf.d/log_post.conf
/etc/httpd/conf.modules.d/10-log_post.conf
/usr/lib/.build-id
/usr/lib/.build-id/df
/usr/lib/.build-id/df/29f60fe31100dacda0a2a74e8711baef12465e
/usr/lib64/httpd/modules/mod_log_post.so
/usr/share/doc/mod_log_post
/usr/share/doc/mod_log_post/ChangeLog
/usr/share/doc/mod_log_post/README
/usr/share/licenses/mod_log_post
/usr/share/licenses/mod_log_post/COPYING
/usr/share/licenses/mod_log_post/LICENSING_EXCEPTION

References

Summary

In this tutorial we learn how to install mod_log_post on Fedora 34 using yum and dnf.