解决
已解决,但这是一个奇怪的问题。我按照Capsule的建议检查config.log,找到以下行:
configure:14368: checking whether to enable mod_ssl
configure:16123: result: no
我想知道为什么在我明确要求它时没有安装ssl。然后我找到了它解析的配置命令:
./configure --prefix=/usr/local/apache --enable-so--enable-cgi--enable-info--enable-rewrite--enable-speling--enable-usertrack--enable-deflate --enable-ssl--enable-mime-magic
注意缺少空格?我在新行中输入了每个指令的命令,因此缺少空格,并且参数没有被正确传递。
现在它按预期工作了!
Apache build(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
当我尝试配置ssl时,我尝试重新启动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
以下是已编译的模块列表(缺少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)
答案 0 :(得分:1)
检查./configure在检查openssl librairies时是否不会对丢失的内容大喊大叫。它可能没有正确编译,因此未列出模块。
您还可以查看config.log