How To Install mod_session on CentOS 8

mod_session is Session interface for the Apache HTTP Server

Introduction

In this tutorial we learn how to install mod_session on CentOS 8.

What is mod_session

The mod_session module and associated backends provide an abstract interface for storing and accessing per-user session data.

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

Install mod_session on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install mod_session

Install mod_session on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install mod_session

How To Uninstall mod_session on CentOS 8

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

sudo dnf remove mod_session

mod_session Package Contents on CentOS 8

/etc/httpd/conf.modules.d/01-session.conf
/usr/lib/.build-id
/usr/lib/.build-id/09/2f89659cdb70890a1cd932e70436232b798946
/usr/lib/.build-id/1c/f0fad1469645059e736b110032b87f57052b5c
/usr/lib/.build-id/48/1b88c7672eadf93cd3585dc02c139c4d06e6eb
/usr/lib/.build-id/9f/5d7e6d996c2d292ea24223eef39fb9477b1b55
/usr/lib/.build-id/f7/402d8453f92350a53e33db1c7bd039c308aa11
/usr/lib64/httpd/modules/mod_auth_form.so
/usr/lib64/httpd/modules/mod_session.so
/usr/lib64/httpd/modules/mod_session_cookie.so
/usr/lib64/httpd/modules/mod_session_crypto.so
/usr/lib64/httpd/modules/mod_session_dbd.so

References

Summary

In this tutorial we learn how to install mod_session on CentOS 8 using yum and dnf.