Еще пробую так компилить....
cd mod_ssl-2.8.18-1.3.31
./configure \
--with-apache=../apache_1.3.31
cd ../apache_1.3.31
cd ../apache_1.3.31
# SSL_BASE=../openssl-0.9.7d \
> ./configure \
> --prefix=/opt/apache3 \
> --enable-module=ssl \
> --enable-shared=ssl (это добавляю...)
тогда компиляция проходит , все нормально, но при запуске опять
/opt/apache3/bin/apachectl startssl
Syntax error on line 206 of /opt/apache3/conf/httpd.conf:
Cannot load /opt/apache3/libexec/libssl.so into server: ld.so.1: /opt/apache3/bin/httpd: fatal: relocation error: file /opt/apache3/libexec/libssl.so: symbol ssl_expr_yylex: referenced symbol not found
/opt/apache3/bin/apachectl startssl: httpd could not be started
ls -la /opt/apache3/libexec
-rw-r--r-- 1 root other 8442 Jun 16 11:55 httpd.exp
-rwxr-xr-x 1 root other 1194900 Jun 16 11:55 libssl.so
less httpd.conf
ServerRoot "/opt/apache3"
# Example:
# LoadModule foo_module libexec/mod_foo.so
<IfDefine SSL>
LoadModule ssl_module libexec/libssl.so
</IfDefine>
ClearModuleList
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>
<IfModule mod_ssl.c>
# Pass Phrase Dialog:
# Configure the pass phrase gathering process.
# The filtering dialog program (`builtin' is a internal
# terminal dialog) has to provide the pass phrase on stdout.
SSLPassPhraseDialog builtin
# Inter-Process Session Cache:
# Configure the SSL Session Cache: First the mechanism
# to use and second the expiring timeout (in seconds).
#SSLSessionCache none
#SSLSessionCache shmht:/opt/apache3/logs/ssl_scache(512000)
#SSLSessionCache shmcb:/opt/apache3/logs/ssl_scache(512000)
SSLSessionCache dbm:/opt/apache3/logs/ssl_scache
SSLSessionCacheTimeout 300
# Semaphore:
# Configure the path to the mutual exclusion semaphore the
# SSL engine uses internally for inter-process synchronization.
SSLMutex file:/opt/apache3/logs/ssl_mutex
# Pseudo Random Number Generator (PRNG):
# Configure one or more sources to seed the PRNG of the
# SSL library. The seed data should be of good random quality.
# WARNING! On some platforms /dev/random blocks if not enough entropy
# is available. This means you then cannot use the /dev/random device
# because it would lead to very long connection times (as long as
# it requires to make more entropy available). But usually those
# platforms additionally provide a /dev/urandom device which doesn't
# block. So, if available, use this one instead. Read the mod_ssl User
# Manual for more details.
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
#SSLRandomSeed startup file:/dev/random 512
#SSLRandomSeed startup file:/dev/urandom 512
#SSLRandomSeed connect file:/dev/random 512
# Logging:
# The home of the dedicated SSL protocol logfile. Errors are
# additionally duplicated in the general error log file. Put
# this somewhere where it cannot be used for symlink attacks on
# a real server (i.e. somewhere where only root can write).
# Log levels are (ascending order: higher ones include lower ones):
# none, error, warn, info, trace, debug.
SSLLog /opt/apache3/logs/ssl_engine_log
SSLLogLevel info
</IfModule>