Install the module
-
Log in to your Linux system as root user.
-
Install the dependencies for the module.
apt install make openssl libssl-dev libcurl4 libcurl4-openssl-dev gcc git libapr1-dev libaprutil1-dev autoconf libtool libtool-bin libpcre3-dev libjansson-dev curl apache2 apache2-dev
-
Make sure your Apache server is version 2.4.48 or later.
apache2ctl -V
-
Create a temporary directory in the current working directory for the
mod_md
tar file.mkdir mod_md_installation cd /mod_md_installation
-
Download the latest compiled mod_md module and save it to the temporary directory.
-
Untar the file.
tar -xvf mod_md.2.4.x.tar.gz
-
Execute the following commands in order.
cd mod_md-2.4.x ./configure --with-apxs=/usr/bin/apxs --enable-werror make make install a2enmod md
-
Restart the Apache service.
systemctl restart apache2
-
Confirm the status of the Apache service by running the following command.
systemctl status apache2
If Apache doesn’t start, run
systemctl service apache2
for more information.