Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know the command to determine if OpenSSL and mod_ssl are installed on apache2?

Regards, Fiona

share|improve this question
up vote 14 down vote accepted

To check apache modules installed on your system:

apache2ctl -M or apachectl -M

To check if OpenSSL is installed in your system:

rpm -qa | grep -i openssl (rpm)

dpkg -l | grep -i openssl (deb)
share|improve this answer
Thank you for getting back to me HD. To check for OpenSSL, neither command is working. I'm running Ubuntu Hardy. Is there a specific command for this distribution? Regards, Fiona – Fiona Sep 2 '09 at 14:28
The dpkg command should work on Hardy, When you say 'not working', does that mean nothing is returned? In that case, you just don't have the 'openssl' package installed – Kyle Brandt Sep 2 '09 at 14:30
As Kyle says if dpkg doesn't return nothing then openssl package is not installed. – HD. Sep 2 '09 at 14:36
ok.. sorry bout that, a typo.. It looks like OpenSSL is installed: ii openssl 0.9.8g-4ubuntu3.7 Secure Socket Layer (SSL) binary and related ii openssl-blacklist 0.3.3+0.4-0ubuntu0.8.04.3 list of blacklisted OpenSSL RSA keys ii ssl-cert 1.0.14-0ubuntu2.1 Simple debconf wrapper for openssl Regards, Fiona – Fiona Sep 2 '09 at 14:47

With apache2 in a Debian environment:

sudo apache2ctl -t -D DUMP_MODULES


sudo apache2ctl -S

This will show all the modules that are currently loaded into Apache, you may have other installed, but not loaded. To find that out the simplest way I know of is to look in the /etc/apache2/mods-available directory.

If it is not loaded, and you think it is installed, you can always use the load module directive to try to load it and see if it errors out (if you can have a little downtime that is)

share|improve this answer
-S and -M are just aliases for apache2ctl -t -D DUMP_MODULES – Kyle Brandt Sep 2 '09 at 14:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.