Apache mod ssl-module activeren

Uit De Vliegende Brigade
Ga naar: navigatie, zoeken

Let's Encrypt vereist de mod_ssl-module op Apache. Hoe installeer ik die?

Is-ie al geïnstalleerd?

Verifiëer of-ie al is geïnstalleerd:

apachectl -M

Is-ie al gedownload?

Verifiëer dat de module beschikbaar is op de server:

> ls /usr/lib/apache2/modules/

httpd.exp               mod_cache.so                mod_lbmethod_bytraffic.so  mod_reqtimeout.so
libphp5.so              mod_cache_socache.so        mod_lbmethod_heartbeat.so  mod_request.so
mod_access_compat.so    mod_cgid.so                 mod_ldap.so                mod_rewrite.so
mod_actions.so          mod_cgi.so                  mod_log_debug.so           mod_sed.so
mod_alias.so            mod_charset_lite.so         mod_log_forensic.so        mod_session_cookie.so
mod_allowmethods.so     mod_data.so                 mod_macro.so               mod_session_crypto.so
mod_asis.so             mod_dav_fs.so               mod_mime_magic.so          mod_session_dbd.so
mod_auth_basic.so       mod_dav_lock.so             mod_mime.so                mod_session.so
mod_auth_digest.so      mod_dav.so                  mod_mpm_event.so           mod_setenvif.so
mod_auth_form.so        mod_dbd.so                  mod_mpm_prefork.so         mod_slotmem_plain.so
mod_authn_anon.so       mod_deflate.so              mod_mpm_worker.so          mod_slotmem_shm.so
mod_authn_core.so       mod_dialup.so               mod_negotiation.so         mod_socache_dbm.so
mod_authn_dbd.so        mod_dir.so                  mod_proxy_ajp.so           mod_socache_memcache.so
mod_authn_dbm.so        mod_dumpio.so               mod_proxy_balancer.so      mod_socache_shmcb.so
mod_authn_file.so       mod_echo.so                 mod_proxy_connect.so       mod_speling.so
mod_authn_socache.so    mod_env.so                  mod_proxy_express.so       mod_ssl.so                ← Hoera!
mod_authnz_ldap.so      mod_expires.so              mod_proxy_fcgi.so          mod_status.so
mod_authz_core.so       mod_ext_filter.so           mod_proxy_fdpass.so        mod_substitute.so
mod_authz_dbd.so        mod_file_cache.so           mod_proxy_ftp.so           mod_suexec.so
mod_authz_dbm.so        mod_filter.so               mod_proxy_html.so          mod_unique_id.so
mod_authz_groupfile.so  mod_headers.so              mod_proxy_http.so          mod_userdir.so
mod_authz_host.so       mod_heartbeat.so            mod_proxy_scgi.so          mod_usertrack.so
mod_authz_owner.so      mod_heartmonitor.so         mod_proxy.so               mod_vhost_alias.so
mod_authz_user.so       mod_include.so              mod_proxy_wstunnel.so      mod_xml2enc.so
mod_autoindex.so        mod_info.so                 mod_ratelimit.so
mod_buffer.so           mod_lbmethod_bybusyness.so  mod_reflector.so
mod_cache_disk.so       mod_lbmethod_byrequests.so  mod_remoteip.so

In dit geval is-ie aanwezig (waarschijnlijk is dat doorgaans het geval op Ubuntu).

Activeer de module

> sudo 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:
Module socache_shmcb already enabled
Module ssl already enabled

> sudo service apache2 restart

* Restarting web server apache2         [ OK ]

Verifiëer

 > apachectl -M

Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 mime_module (shared)
 mpm_prefork_module (shared)
 negotiation_module (shared)
 php5_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)              ← Hoera!
 status_module (shared)

Bronnen