mod_ssl no compilando con apache2
Pregunta
resuelto
Resuelto, pero fue un problema extraño.Verifico config.log, como lo sugiere cápsula y encontré la siguiente línea:
configure:14368: checking whether to enable mod_ssl
configure:16123: result: no
Me preguntaba por qué no estaba instalando SSL cuando claramente lo había pedido.Luego encontré el comando de configuración que había analizado:
./configure --prefix=/usr/local/apache --enable-so--enable-cgi--enable-info--enable-rewrite--enable-speling--enable-usertrack--enable-deflate --enable-ssl--enable-mime-magic
¡Note la falta de espacios? He entrado en el comando con cada directiva en una nueva línea para que faltaban espacios, y los argumentos no se estaban pasando correctamente.
y ahora funciona como se esperaba!
Apache BUILT (2.2.1):
./configure --prefix=/usr/local/apache \
--enable-so \
--enable-cgi \
--enable-info \
--enable-rewrite \
--enable-speling \
--enable-usertrack \
--enable-deflate \
--enable-ssl \
--enable-mime-magic
Cuando intento configurar SSL, obtengo lo siguiente, ya que intento reiniciar Apache
Syntax error on line 56 of /usr/local/apache/conf/extra/httpd-ssl.conf:
Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration
Aquí está la lista de módulos compilados (Falta SSL)
/usr/local/apache/bin/apachectl -M
Loaded Modules:
core_module (static)
authn_file_module (static)
authn_default_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
include_module (static)
filter_module (static)
log_config_module (static)
env_module (static)
setenvif_module (static)
version_module (static)
mpm_prefork_module (static)
http_module (static)
mime_module (static)
status_module (static)
autoindex_module (static)
asis_module (static)
cgi_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
so_module (static)
php5_module (shared)
Solución
Check if ./configure doesn't yell about something missing when checking for openssl librairies. It probably didn't compile right, hence the module not listed.
You can also have a look at config.log