How To Install mod_session.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mod_session.x86_64 in Amazon Linux 2. mod_session.x86_64 is Session interface for the Apache HTTP Server

Introduction

In this tutorial we learn how to install mod_session.x86_64 on Amazon Linux 2.

What is mod_session.x86_64

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

We can use yum to install mod_session.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mod_session.x86_64.

Install mod_session.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mod_session.x86_64

How To Uninstall mod_session.x86_64 on Amazon Linux 2

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

sudo yum remove mod_session.x86_64

mod_session.x86_64 Package Contents on Amazon Linux 2

/etc/httpd/conf.modules.d/01-session.conf
/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.x86_64 on Amazon Linux 2 using yum.