Skip to content

Invalid command ‘SSLEngine’ – How to enable mod_ssl

I enabled SSL on our Ubuntu Linux server by modifying the virtual host file (SSLEngine on) today, and got the following error message when I tried restarting Apache:

Invalid command ‘SSLEngine’, perhaps misspelled or defined by a module not included

Nothing was misspelled in the file. Turns out mod_ssl was not enabled on the server. mod_ssl module comes with the apache2-common package, however, is not enabled by default. Run the following command to enable it:

sudo a2enmod ssl

and restart apache

sudo /etc/init.d/apache2 restart

Categories: Linux tips.

Tags: , , ,

Comment Feed

8 Responses

  1. thanks!

  2. just what i was looking for. thanks!

    emile baizelJanuary 5, 2012 @ 6:14 pmReply
  3. Just a small note that the a2enmod command also works exactly the same on Debian.

  4. Thank you, this helped me out just now!

  5. That was golden!
    All other posts lead me to Direct Admin (and a lot of different solutions), but it was as simple as starting the service on my debian installation!

  6. Thanks, worked perfect on Debian 🙂

  7. Thanks! Worked like a charm. 🙂

  8. Thanks a lot!!!!!
    Same Thing on Suse:-)

    Oliver GrafJuly 11, 2013 @ 7:00 amReply



Some HTML is OK

or, reply to this post via trackback.