- 论坛徽章:
- 0
|
我http的编译是这样的 版本是2.2.4的
#./configure
--prefix=/usr/local/apache
--sysconfdir=/etc/httpd
--enable-so
--enable-ssl 支持SSl
--with-ssl=/usr/local/ssl
--enable-track-vars
--enable-rewrite
--with-zlib
--enable-mods-shared=most
--enable-suexec
--with-suexec-caller=daemon
SSL的编译是这样的:
# ./config shared zlib
# make
# make test
# make install
移除原有openssl
# mv /usr/bin/openssl{,.bak}
# mv /usr/include/openssl{,.bak}
# mv /usr/lib/libssl.so{,.bak}
链接bin和include到/usr下
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
# ln -s /usr/local/ssl/include/openssl /usr/include/openssl
# ln -sv /usr/local/ssl/lib/libssl.so.0.9.8 /usr/lib/libssl.so
但是我启动 /usr/local/apache/bin/apachectl start的时候报错!
以下是报错信息:
httpd: Syntax error on line 80 of /etc/httpd/httpd.conf: Cannot load /usr/local/apache/modules/mod_ssl.so into server: libssl.so.0.9.8: cannot open shared object file: No such file or directory
为什么模块读取不到呢?
请大拿们不吝赐教!! |
|