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

【已完成】求助:升级ubuntu22.04后无法安装php

发表在 Linux面板2022-12-17 16:23 [复制链接] 11 7566

本帖最后由 堡塔运维香菜卷 于 2023-3-23 17:21 编辑

升级ubuntu22.04后,宝塔面板原来正常运行的php7.4无法启动,卸载后无法安装任何版本的Php,消息列表均显示[已完成]耗时0秒,为安装后无任何动作,执行日志中只有:等待执行……

使用道具 举报 只看该作者 回复
发表于 2022-12-17 16:24:36 | 显示全部楼层
已点过修复、重启面板、重启服务器,仍无效
使用道具 举报 回复 支持 反对
发表于 2022-12-17 16:54:48 | 显示全部楼层
您好,设置下hosts然后重新安装看下是否正常
https://www.bt.cn/bbs/thread-87257-1-1.html
使用道具 举报 回复 支持 反对
发表于 2022-12-17 17:08:43 | 显示全部楼层
谢花郎 发表于 2022-12-17 16:54
您好,设置下hosts然后重新安装看下是否正常
https://www.bt.cn/bbs/thread-87257-1-1.html ...

wget http://125.90.93.52/tools/auto_fix.sh && bash auto_fix.sh 修复后无效,症状无变化
使用道具 举报 回复 支持 反对
发表于 2022-12-17 17:34:26 | 显示全部楼层
麻烦执行下面看下能否连接我们节点域名

  1. curl -v https://download.bt.cn
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-12-17 17:57:17 | 显示全部楼层
谢花郎 发表于 2022-12-17 17:34
麻烦执行下面看下能否连接我们节点域名

*   Trying 125.90.93.52...
* TCP_NODELAY set
* Connected to download.bt.cn (125.90.93.52) port 443 (#0)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=CN; ST=\U5E7F\U4E1C\U7701; O=\U5E7F\U4E1C\U5821\U5854\U5B89\U5168\                                                                                                                                   U6280\U672F\U6709\U9650\U516C\U53F8; CN=*.bt.cn
*  start date: Sep  7 00:00:00 2022 GMT
*  expire date: Oct  8 23:59:59 2023 GMT
*  subjectAltName: host "download.bt.cn" matched cert's "*.bt.cn"
*  issuer: C=CN; O=sslTrus; CN=sslTrus (RSA) OV CA
*  SSL certificate verify ok.
> GET / HTTP/1.1
> Host: download.bt.cn
> User-Agent: curl/7.64.1
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/1.1 200 OK
< Server: nginx
< Date: Sat, 17 Dec 2022 09:56:32 GMT
< Content-Type: text/html
< Content-Length: 916
< Last-Modified: Sat, 08 Aug 2020 07:05:51 GMT
< Connection: keep-alive
< ETag: "5f2e4ecf-394"
< Strict-Transport-Security: max-age=31536000
< Accept-Ranges: bytes
<
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>恭喜,站点创建成功!</title>
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min                                                                                                                                   .css">
<script src="//cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</head>
<body>
        <div class="container" style="margin-top:9%;">
                <div class="jumbotron">
        <div class="panel panel-success">
        <div class="panel-heading"><h1>恭喜, 站点创建成功!</h1></div>
        </div>
          <p><h3>站点创建成功,本页面由系统自动生成。</h3></p>
          <p><li>本页面在FTP根目录下的index.html</li></p>
          <p><li>您可以删除或覆盖本页面</li></p>
          <p><li>我们为您提供了完善的数据备份功能,请到后台进行相关设置</li></p>
        </div>
        </div>
</body>
* Connection #0 to host download.bt.cn left intact
</html>* Closing connection 0
使用道具 举报 回复 支持 反对
发表于 2022-12-17 18:02:10 | 显示全部楼层
本帖最后由 宝塔用户_qlbjch 于 2022-12-17 18:05 编辑

尝试了快速安装和编译安装,均无任何动作。
使用道具 举报 回复 支持 反对
发表于 2022-12-17 18:03:53 | 显示全部楼层
谢花郎 发表于 2022-12-17 17:34
麻烦执行下面看下能否连接我们节点域名

使用道具 举报 回复 支持 反对
发表于 2022-12-17 18:04:40 | 显示全部楼层
宝塔用户_qlbjch 发表于 2022-12-17 17:57
*   Trying 125.90.93.52...
* TCP_NODELAY set
* Connected to download.bt.cn (125.90.93.52) port 443 ...

进入到/www/server/panel/install目录下看看有无php.sh文件
如存在则执行下面命令
  1. bash php.sh install 安装的PHP版本号
复制代码


例子:
cd /www/server/panel/install
bash php.sh install 7.4

如果php.sh不存在则执行下面命令
  1. wget  -O /www/server/panel/install/php.sh https://download.bt.cn/install/0/php.sh
  2. bash /www/server/panel/install/php.sh install 7.4
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-12-17 18:12:31 | 显示全部楼层
谢花郎 发表于 2022-12-17 18:04
进入到/www/server/panel/install目录下看看有无php.sh文件
如存在则执行下面命令

目录里的php.sh权限为0600
执行后:
使用道具 举报 回复 支持 反对
发表于 2022-12-18 10:35:21 | 显示全部楼层
宝塔用户_qlbjch 发表于 2022-12-17 18:12
目录里的php.sh权限为0600
执行后:

您好,执行以下命令截图看一下
  1. ll /usr/local/lib/libcurl.so.4
复制代码
使用道具 举报 回复 支持 反对
发表于 2022-12-18 10:44:03 | 显示全部楼层
谢花郎 发表于 2022-12-17 18:04
进入到/www/server/panel/install目录下看看有无php.sh文件
如存在则执行下面命令

封贴,已换debian11系统。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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