当前位置:论坛首页 > Linux面板 > 求助

【待反馈】php无法安装成功

发表在 Linux面板2022-1-8 00:37 [复制链接] 9 2744

求助大神们,安装php任何版本,不管用极速还是编译都无法安装成功!奇怪截图上传不了。
/bin/ld: warning: libssl.so.10, needed by //usr/lib64/libssh2.so.1, may conflict with libssl.so.1.1/bin/ld: warning: libssl.so.10, needed by //usr/lib64/libssh2.so.1, may conflict with libssl.so.1.1/bin/ld: warning: libssl.so.10, needed by //usr/lib64/libssh2.so.1, may conflict with libssl.so.1.1/bin/ld: ext/openssl/.libs/xp_ssl.o: undefined reference to symbol 'SSLv3_server_method@@libssl.so.10'//usr/lib64/libssl.so.10: error adding symbols: DSO missing from command linecollect2: error: ld returned 1 exit statusmake: *** [sapi/cli/php] Error 1
使用道具 举报 只看该作者 回复
发表于 2022-1-8 09:24:50 | 显示全部楼层
您好,您服务器使用的是Linux什么发行版本呢?提示这个错误看着是部分动态依赖库文件问题导致安装失败了

执行下面命令查看服务器系统版本以及内核

  1. cat /etc/redhat-release
  2. uname -a
复制代码

使用道具 举报 回复 支持 反对
发表于 2022-1-8 10:17:18 | 显示全部楼层
谢花郎 发表于 2022-1-8 09:24
您好,您服务器使用的是Linux什么发行版本呢?提示这个错误看着是部分动态依赖库文件问题导致安装失败了

...

谢谢大神回复,我看了下版本是CentOS Linux release 7.6.1810 (Core)
使用道具 举报 回复 支持 反对
发表于 2022-1-8 10:25:04 | 显示全部楼层
abu9346 发表于 2022-1-8 10:17
谢谢大神回复,我看了下版本是CentOS Linux release 7.6.1810 (Core)

麻烦您执行下面命令看下系统版本内核

  1. uname -a
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-1-8 10:32:05 | 显示全部楼层
谢花郎 发表于 2022-1-8 10:25
麻烦您执行下面命令看下系统版本内核

Linux A-dg-site 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux,麻烦大神看看。折磨我1天了
使用道具 举报 回复 支持 反对
发表于 2022-1-8 10:42:58 | 显示全部楼层
abu9346 发表于 2022-1-8 10:32
Linux A-dg-site 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/L ...

装的是什么PHP版本呢?
手动加下编译参数,进入到/www/server/panel/install目录下
然后编辑php.sh文件,找到./configure添加下面参数然后重新安装
大概行数是在548,参数加在你需要安装的PHP版本。
例如我要安装PHP7.3,则将参数加到538这后面的编译

  1. --disable-shared --enable-static
复制代码
25.png
使用道具 举报 回复 支持 反对
发表于 2022-1-8 10:56:38 | 显示全部楼层
谢花郎 发表于 2022-1-8 10:42
装的是什么PHP版本呢?
手动加下编译参数,进入到/www/server/panel/install目录下
然后编辑php.sh文件, ...

大神,您好,我这个好像多了个这个参数 是不是替换成您截图的这个
  1.   ./configure --prefix=${php_setup_path} --with-config-file-path=${php_setup_path}/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir=/usr/local/freetype --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl=/usr/local/curl --enable-mbregex --enable-mbstring --enable-intl --enable-pcntl --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl=/usr/local/openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-gettext --disable-fileinfo --enable-opcache --with-webp-dir=/usr <b>${ENABLE_MCRYPT}</b> ${i_make_args}
复制代码


使用道具 举报 回复 支持 反对
发表于 2022-1-8 10:58:24 | 显示全部楼层
abu9346 发表于 2022-1-8 10:56
大神,您好,我这个好像多了个这个参数 是不是替换成您截图的这个

你在-with-webp-dir=/usr后面加上就好了,记得空格。
然后在执行bash php.sh install 7.3 或者 bash /www/server/panel/install/php.sh install 7.3

安装php版本以你实际版本
使用道具 举报 回复 支持 反对
发表于 2022-1-8 11:03:45 | 显示全部楼层
谢花郎 发表于 2022-1-8 10:58
你在-with-webp-dir=/usr后面加上就好了,记得空格。
然后在执行bash php.sh install 7.3 或者 bash /www ...

不用在宝塔面板点安装,在ssh连上服务器执行bash php.sh install 7.3 或者 bash /www/server/panel/install/php.sh install 7.3吗?我的是php7.2 就改为7.2就可以了是吧
使用道具 举报 回复 支持 反对
发表于 2022-1-8 11:05:28 | 显示全部楼层
abu9346 发表于 2022-1-8 11:03
不用在宝塔面板点安装,在ssh连上服务器执行bash php.sh install 7.3 或者 bash /www/server/panel/insta ...

不用在面板内点安装,不然修改的脚本会被新的覆盖掉。
将7.3改为你要安装的PHP版本就行了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

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