Can't locate API module structure `mod_ssl' in file mod_ssl.so
Recently I changed my apache from all modules statically built to shared built (to be able to enable/disable any one I want at any time I want).
Still, ssl module has to be compiled separately (--enable-ssl argument to configure script).
If the module is not loaded by default in httpd.conf after installation (if you compiled ssl after apache), SSL won't be activated.
I added the line
Code:
LoadModule mod_ssl modules/mod_ssl.so
in the modules section of httpd.conf, but
apachectl configtest showed this error:
Code:
httpd: Syntax error on line 106 of /opt/apache-2.2.13/conf/httpd.conf: Can't locate API module structure `mod_ssl' in file /opt/apache-2.2.13/modules/mod_ssl.so: /opt/apache-2.2.13_1/modules/mod_ssl.so: undefined symbol: mod_ssl
This is because I used the wrong symbol. The correct one is
ssl_module, and not mod_ssl.
This is the correct line to load ssl module in apache 2.2.13Code:
LoadModule ssl_module modules/mod_ssl.so