heroxfeng 发表于 2023-4-17 12:20:50

PHP 升级失败后, 不知道怎么操作了.

操作PHP升级不成功后, 就一直这样了, 要怎么处理呢?

libc-client2007e-dev is already the newest version (8:2007f~dfsg-7+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
xz-utils is already the newest version (5.2.5-2.1~deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libexpat1-dev is already the newest version (2.2.10-2+deb11u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
bzip2 is already the newest version (1.0.8-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libbz2-dev is already the newest version (1.0.8-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libsqlite3-dev is already the newest version (3.34.1-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libonig-dev is already the newest version (6.9.6-1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libwebp-dev is already the newest version (0.6.1-2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.




heroxfeng 发表于 2023-4-17 12:21:53

再升级选择PHP都没有了.

Enter your choice (1, 2, 3, 4, 5, 6, 7 or exit): 4
include/main.sh: line 818: /usr/local/php/bin/php-config: No such file or directory
include/main.sh: line 819: /usr/local/php/bin/php-config: No such file or directory
Current PHP Version:
You can get version number from http://www.php.net/
Please enter a PHP Version you want:

licess 发表于 2023-4-17 17:30:52

什么系统及版本?
lnmp什么版本?
升级前php什么版本,要升级到哪个版本?
按反馈必读要求提供完整的升级日志

另外升级失败的话官网升级教程里面有具体恢复的方法

heroxfeng 发表于 2023-4-17 20:17:06

licess 发表于 2023-4-17 17:30
什么系统及版本?
lnmp什么版本?
升级前php什么版本,要升级到哪个版本?


是我搞错了, 我是LNMP1.9版本, 一开始升级PHP到8.2.5失败了, 后来看版本日志发现1.9不支持8.2, 现在从新安装了.
页: [1]
查看完整版本: PHP 升级失败后, 不知道怎么操作了.