1

解決済み

解決しましたが、奇妙な問題でした。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ビルド(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)
4

1 に答える 1

1

./configureが、opensslライブラリをチェックするときに不足しているものについて怒鳴らないかどうかを確認します。おそらく正しくコンパイルされなかったため、モジュールはリストされていません。

config.logもご覧ください。

于 2011-02-17T21:46:22.680 に答える