Вопрос

Решено

решил, но это была странная проблема.Я проверяю 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
.

Обратите внимание на отсутствие пространств? Я вошел в команду с каждой директивой в новой строке, поэтому она отсутствовала пробелы, а аргументы не были правильно пройдены.

А теперь это работает как ожидалось!


build 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
.

Вот список модулей Compiledin (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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top