How to enable Apache SSL module in Ubuntu
To enable the Apache SSL module in Ubuntu, follow these steps
Update apt package cache
1 |
apt update |
Install Apache SSL module
1 |
apt install libapache2-mod-ssl |
Enable the SSL module
1 |
a2enmod ssl |
Example
1 2 3 4 5 6 7 8 9 10 11 12 |
# a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Enabling module socache_shmcb. Enabling module ssl. See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates. To activate the new configuration, you need to run: service apache2 restart # |
Restart Apache webserver
1 2 3 |
# service apache2 restart * Restarting web server apache2 [ OK ] # |
Verify Apache SSL module is installed.
1 2 3 |
# apache2ctl -M | grep ssl ssl_module (shared) # |