Invalid command 'SSLEngine' for mod_ssl and openssl

Discussion in 'Apache' started by xanbkn, Jan 24, 2011.

  1. #1
    I have just installed apache 2.3 and compiled it with mod_ssl and openssl. The server runs fine, but inserting the following line into httpd.conf:

    SSLEngine on

    and then running 'apachectl restart' gives me this error:

    root@phoenixcorps-main:/etc/apache2/sites-enabled# apachectl restartSyntax error on line 78 of /etc/apache2/sites-enabled/000-default:
    Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
    Action 'restart' failed.
    The Apache error log may have more information.

    Also, the command openssl yields this output:

    root@phoenixcorps-main:/etc/apache2/sites-enabled# openssl
    openssl: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

    Does anyone know how to fix this? Any help would be appreciated.

    Thanks in advance,

    XanBKN
     
    xanbkn, Jan 24, 2011 IP
  2. xanbkn

    xanbkn Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I changed the value in /etc/apache2/sites-available/default
    I'll test httpd.conf
     
    xanbkn, Jan 24, 2011 IP
  3. gopkris2000

    gopkris2000 Peon

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Did you recompile apache with openSSL? libssl.so.1.0.0 missing in your server.
     
    gopkris2000, Jan 25, 2011 IP
  4. xanbkn

    xanbkn Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Changing the line in httpd.conf results in same error. List modules with httpd -l yields mos_ssl.c. What should I do?
     
    xanbkn, Jan 25, 2011 IP