当前位置:论坛首页 > Linux面板 > 建议

【已解决】编译安装php出错

发表在 Linux面板2022-5-13 22:53 [复制链接] 11 8209

看到错误原因是源代码包无法下载  安装脚本应该更新了

把http  改成https的
1652453540(1).png

使用道具 举报 只看该作者 回复
发表于 2022-5-13 23:08:01 | 显示全部楼层
您好,是您那边没有链接到我们节点,依次执行下面命令指定下hosts然后重新安装看下

  1. sed -i "/bt.cn/d" /etc/hosts
  2. echo "116.10.184.232 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn" >> /etc/hosts
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-5-13 23:34:19 | 显示全部楼层
cat: /www/server/panel/install/php/config.pl: No such file or directory
php.sh: line 466: /etc/init.d/php-fpm-71: No such file or directory
--2022-05-13 23:33:27--  http://dg2.bt.cn/src/php-7.1.33.tar.gz
Resolving dg2.bt.cn (dg2.bt.cn)... 116.10.184.232
Connecting to dg2.bt.cn (dg2.bt.cn)|116.10.184.232|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2022-05-13 23:33:28--  (try: 2)  http://dg2.bt.cn/src/php-7.1.33.tar.gz
Connecting to dg2.bt.cn (dg2.bt.cn)|116.10.184.232|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2022-05-13 23:33:31--  (try: 3)  http://dg2.bt.cn/src/php-7.1.33.tar.gz
Connecting to dg2.bt.cn (dg2.bt.cn)|116.10.184.232|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2022-05-13 23:33:34--  (try: 4)  http://dg2.bt.cn/src/php-7.1.33.tar.gz
Connecting to dg2.bt.cn (dg2.bt.cn)|116.10.184.232|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2022-05-13 23:33:38--  (try: 5)  http://dg2.bt.cn/src/php-7.1.33.tar.gz
Connecting to dg2.bt.cn (dg2.bt.cn)|116.10.184.232|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2022-05-13 23:33:44--  (try: 6)  http://dg2.bt.cn/src/php-7.1.33.tar.gz
Connecting to dg2.bt.cn (dg2.bt.cn)|116.10.184.232|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2022-05-13 23:33:50--  (try: 7)  http://dg2.bt.cn/src/php-7.1.33.tar.gz
Connecting to dg2.bt.cn (dg2.bt.cn)|116.10.184.232|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
使用道具 举报 回复 支持 反对
发表于 2022-5-13 23:38:17 | 显示全部楼层
补充说明下我的环境
UnionTech OS Server release 20 (kongzi)
Bit:64 Mem:15874M Core:16 gcc:8.4.1 cmake:3.18.2
Linux 4.19.0-91.82.92.uelc20.x86_64 x86_64


目前php7.4正常运行 但是有个老系统php7.2的。
使用道具 举报 回复 支持 反对
发表于 2022-5-13 23:39:16 | 显示全部楼层
希望咱们国产的软件关注下本土公司改造的linux上运行问题
使用道具 举报 回复 支持 反对
发表于 2022-5-13 23:40:35 | 显示全部楼层
本地解析我也加上了  不知为何脚本总是无法下载这个包
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
116.10.184.232 www.bt.cn download.bt.cn api.bt.cn dg1.bt.cn dg2.bt.cn
使用道具 举报 回复 支持 反对
发表于 2022-5-13 23:44:19 | 显示全部楼层
宝塔用户_gtrmvq 发表于 2022-5-13 23:40
本地解析我也加上了  不知为何脚本总是无法下载这个包
127.0.0.1   localhost localhost.localdomain local ...

把当前的安装脚本删除然后重新下载安装看下

  1. rm -f /www/server/panel/install/php.sh
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-5-14 00:13:58 | 显示全部楼层
删除了安装脚本 问题依旧,安装的时候他会自动下载一个php.sh 而这个脚本里面 下载代码包的地址是http的 不是https  如果换成https就可以正常运行
使用道具 举报 回复 支持 反对
发表于 2022-5-14 00:15:07 | 显示全部楼层
谢花郎 发表于 2022-5-13 23:44
把当前的安装脚本删除然后重新下载安装看下

删除了 问题依旧存在
执行安装的时候 会自动下载一个php.sh 而这个文件里面的地址是http的  改成https就可以下载代码包了   
使用道具 举报 回复 支持 反对
发表于 2022-5-14 00:17:23 | 显示全部楼层
sed -i "s/http:/https:/g" `grep http: -rl /www/server/panel/install/`
使用道具 举报 回复 支持 反对
发表于 2022-5-14 00:18:39 | 显示全部楼层
sed -i "s/http:/https:/g" `grep http: -rl /www/server/panel/install/`
使用道具 举报 回复 支持 反对
发表于 2022-5-14 00:22:12 | 显示全部楼层
sed -i "s/http:/https:/g" `grep http: -rl /www/server/panel/install/`   这样搞一下 就正常了
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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