How To Install mod_log_post on CentOS 7

In this tutorial we learn how to install mod_log_post on CentOS 7. 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 CentOS 7.

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 CentOS 7. 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 CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install mod_log_post

Install mod_log_post on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install mod_log_post

How To Uninstall mod_log_post on CentOS 7

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

sudo dnf remove mod_log_post

References

Summary

In this tutorial we learn how to install mod_log_post on CentOS 7 using yum and dnf.