How To Install mod_session on Fedora 34

mod_session is Session interface for the Apache HTTP Server

Introduction

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

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mod_session.

Install mod_session 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_session using dnf by running the following command:

sudo dnf -y install mod_session

Install mod_session 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_session using yum by running the following command:

sudo yum -y install mod_session

How To Uninstall mod_session on Fedora 34

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

sudo dnf remove mod_session

mod_session Package Contents on Fedora 34

/etc/httpd/conf.modules.d/01-session.conf
/usr/lib/.build-id
/usr/lib/.build-id/07/e321ec31400b7fb034705e010e23fe4c91db53
/usr/lib/.build-id/22/e2865f3c3c72f877dc569a1963379d5be68817
/usr/lib/.build-id/66/03c489ddddb90080b2b8f3eddd42fcec66c9a2
/usr/lib/.build-id/70/1e0bfa511e476377cba31b8778402795bf0f93
/usr/lib/.build-id/ba/fcb4c98435bfcb297e522b34b472f9aa47954c
/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
/etc/httpd/conf.modules.d/01-session.conf
/usr/lib/.build-id
/usr/lib/.build-id/33/5f10fb6079aff631d7698199526e8a5290999b
/usr/lib/.build-id/6e/85c90f2cc838b130b19b83597825fa143637fa
/usr/lib/.build-id/b5/5c0e098f938ff870a55d0786572868559493a3
/usr/lib/.build-id/c8/89838ff1fe20b47423c29120b357eea1502c6e
/usr/lib/.build-id/d4/7aca2e72f76ef77a63091f3853e8cae82bb3d5
/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 Fedora 34 using yum and dnf.