mod_ssl apache2로 컴파일하지 않습니다
문제
해결
해결되었지만 이상한 문제였습니다.COPSULE에서 제안한대로 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)
해결책
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