解决了
解决了,但这是一个奇怪的问题。我按照 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
注意到缺少空格了吗?我已经在新行中输入了带有每个指令的命令,因此它缺少空格,并且没有正确传递参数。
现在它按预期工作!
阿帕奇构建( 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)