VPS侦探论坛

 找回密码
 注册
查看: 3283|回复: 3

lnmp1.7安装php失败

[复制链接]
发表于 2021-5-25 00:00:18 | 显示全部楼层 |阅读模式

Centos7.6,只安装nginx和php,在数据库那里我选择了10,不安装数据库,安装 php7.4,结果 安装 失败了,看到错误是openssl?可是只有这个版本mysql才能编译成功,但是PHP却出问题了openssl的版本是 OpenSSL 1.1.1k  25 Mar 2021





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-5-25 08:00:27 | 显示全部楼层


/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto':
/root/lnmp1.7-full/src/php-7.4.12/ext/openssl/xp_ssl.c:1662: undefined reference to `TLS_server_method'
/root/lnmp1.7-full/src/php-7.4.12/ext/openssl/xp_ssl.c:1719: undefined reference to `SSL_CTX_set_security_level'
/root/lnmp1.7-full/src/php-7.4.12/ext/openssl/xp_ssl.c:1662: undefined reference to `TLS_client_method'
/root/lnmp1.7-full/src/php-7.4.12/ext/openssl/xp_ssl.c:1756: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_set_server_specific_opts':
/root/lnmp1.7-full/src/php-7.4.12/ext/openssl/xp_ssl.c:1335: undefined reference to `SSL_CTX_get_options'
/root/lnmp1.7-full/src/php-7.4.12/ext/openssl/xp_ssl.c:1362: undefined reference to `SSL_CTX_set_options'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_num':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_num'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_value':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_value'
ext/openssl/.libs/xp_ssl.o: In function `sk_GENERAL_NAME_pop_free':
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
/usr/local/include/openssl/x509v3.h:166: undefined reference to `OPENSSL_sk_pop_free'
ext/ftp/.libs/ftp.o: In function `ftp_login':
/root/lnmp1.7-full/src/php-7.4.12/ext/ftp/ftp.c:275: undefined reference to `TLS_client_method'
/root/lnmp1.7-full/src/php-7.4.12/ext/ftp/ftp.c:284: undefined reference to `SSL_CTX_set_options'
ext/phar/.libs/util.o: In function `phar_verify_signature':
/root/lnmp1.7-full/src/php-7.4.12/ext/phar/util.c:1559: undefined reference to `EVP_MD_CTX_new'
/root/lnmp1.7-full/src/php-7.4.12/ext/phar/util.c:1593: undefined reference to `EVP_MD_CTX_free'
/root/lnmp1.7-full/src/php-7.4.12/ext/phar/util.c:1583: undefined reference to `EVP_MD_CTX_free'
ext/phar/.libs/util.o: In function `phar_create_signature':
/root/lnmp1.7-full/src/php-7.4.12/ext/phar/util.c:1839: undefined reference to `EVP_MD_CTX_new'
/root/lnmp1.7-full/src/php-7.4.12/ext/phar/util.c:1875: undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status

你自行升级openssl导致的,你自己升级了系统的openssl有什么用途?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2021-5-25 08:45:44 | 显示全部楼层

licess 发表于 2021-5-25 08:00
你自行升级openssl导致的,你自己升级了系统的openssl有什么用途?

waf报openssl漏洞,解决方案就是升级到最新版
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2021-5-25 19:26:05 | 显示全部楼层



sandm 发表于 2021-5-25 08:45
waf报openssl漏洞,解决方案就是升级到最新版

不升级并没什么影响

有可能你升级步骤有问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 00:52 , Processed in 0.026706 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表