apache (在centos上)使用openssl 1.0.1
我想用不同的OpenSSLvesrion.编译php
首先,我使用配置安装openssl。
./config -前缀=/usr/local --openssldir=/usr/local/openssl
然后我用配置安装php。
配置-前缀=/usr/local-with-apxs2=/usr/bin/apxs-禁用-phpdbg-with-openssl-dir=/usr/local/bin-禁用-phpdbg-webhelper with-pdo-mysql=/usr-with-mysqli=/usr/bin/_config-启用-日历-启用-ftp-启用-soap-与-mcrypt-使用-mcrypt-启用-opcache-启用-bcmath字符串-启用-套接字--具有-mhash-with-gd-启用-gd-本机-ttf --with-jpeg-dir=/usr/local/lib -dir=/usr/local/lib
标头版本更改成功,但库版本没有更改
phpinfo
OpenSSL库版本- OpenSSL 1.0.1 OpenSSL标头版本- OpenSSL 0.9.8
我做错了什么?
附注:抱歉问了个老问题。
发布于 2018-02-22 10:57:19
您的--with-openssl-dir指令没有链接到更新的openssl版本。确定正确的目录并将--with-openssl-dir调整到该路径。
https://stackoverflow.com/questions/40816647
复制相似问题