VPS侦探论坛

 找回密码
 注册
查看: 4562|回复: 1

lnmp1.8 从php8.0.12升级至php8.0.13失败. 然后php就没有了.

[复制链接]
发表于 2021-11-19 23:07:10 | 显示全部楼层 |阅读模式

升级之前, php 8.0.12是正常使用的. 升级日志如下:
cat upgrade_lnmp_php20211119230100.log
include/main.sh: line 720: /usr/local/php/bin/php-config: No such file or directory
include/main.sh: line 721: /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:
Press any key to start...or Press Ctrl+c to cancel

php-8.0.13.tar.bz2 [found]
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...  done
Shutting down MySQL.... SUCCESS!
/bin/lnmp: line 44: /etc/init.d/php-fpm: No such file or directory
mv: cannot stat ‘/etc/init.d/php-fpm’: No such file or directory
Installing Dependent for PHP...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package c-ares-devel-1.10.0-3.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libicu-devel-50.2-4.el7_7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libxslt-1.1.28-6.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libxslt-devel-1.1.28-6.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package xz-5.2.2-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package expat-devel-2.1.0-12.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libzip-devel-0.10.1-8.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package bzip2-devel-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package sqlite-devel-3.7.17-8.el7_7.1.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package oniguruma-devel-6.8.2-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package epel-release-7-14.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package oniguruma-6.8.2-1.el7.x86_64 already installed and latest version
Package oniguruma-devel-6.8.2-1.el7.x86_64 already installed and latest version
Nothing to do
[+] Installing 8.0.13
Uncompress php-8.0.13.tar.bz2...
cd php-8.0.13...
include/upgrade_php.sh: line 874: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
Copy new php configure file...
Modify php.ini......
include/php.sh: line 86: pear: command not found
include/php.sh: line 87: pecl: command not found
Downloading Composer...
--2021-11-19 23:01:21--  https://soft.vpser.net/web/php/composer/composer.phar
Resolving soft.vpser.net (soft.vpser.net)... 81.70.180.148
Connecting to soft.vpser.net (soft.vpser.net)|81.70.180.148|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://175.6.32.4:88/soft/web/php/composer/composer.phar [following]
--2021-11-19 23:01:21--  http://175.6.32.4:88/soft/web/php/composer/composer.phar
Connecting to 175.6.32.4:88... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2287395 (2.2M) [application/octet-stream]
Saving to: ‘/usr/local/bin/composer’

     0K .......... .......... .......... .......... ..........  2%  953K 2s
    50K .......... .......... .......... .......... ..........  4% 1.86M 2s
   100K .......... .......... .......... .......... ..........  6%  154M 1s
   150K .......... .......... .......... .......... ..........  8%  199M 1s
   200K .......... .......... .......... .......... .......... 11% 1.88M 1s
   250K .......... .......... .......... .......... .......... 13%  221M 1s
   300K .......... .......... .......... .......... .......... 15% 81.0M 1s
   350K .......... .......... .......... .......... .......... 17%  214M 0s
   400K .......... .......... .......... .......... .......... 20% 1.93M 1s
   450K .......... .......... .......... .......... .......... 22% 89.0M 0s
   500K .......... .......... .......... .......... .......... 24% 81.9M 0s
   550K .......... .......... .......... .......... .......... 26%  191M 0s
   600K .......... .......... .......... .......... .......... 29%  198M 0s
   650K .......... .......... .......... .......... .......... 31%  197M 0s
   700K .......... .......... .......... .......... .......... 33%  163M 0s
   750K .......... .......... .......... .......... .......... 35% 2.03M 0s
   800K .......... .......... .......... .......... .......... 38%  195M 0s
   850K .......... .......... .......... .......... .......... 40%  235M 0s
   900K .......... .......... .......... .......... .......... 42%  185M 0s
   950K .......... .......... .......... .......... .......... 44%  207M 0s
  1000K .......... .......... .......... .......... .......... 47%  226M 0s
  1050K .......... .......... .......... .......... .......... 49%  245M 0s
  1100K .......... .......... .......... .......... .......... 51%  275M 0s
  1150K .......... .......... .......... .......... .......... 53%  246M 0s
  1200K .......... .......... .......... .......... .......... 55%  256M 0s
  1250K .......... .......... .......... .......... .......... 58%  258M 0s
  1300K .......... .......... .......... .......... .......... 60%  270M 0s
  1350K .......... .......... .......... .......... .......... 62%  233M 0s
  1400K .......... .......... .......... .......... .......... 64%  247M 0s
  1450K .......... .......... .......... .......... .......... 67% 2.05M 0s
  1500K .......... .......... .......... .......... .......... 69%  184M 0s
  1550K .......... .......... .......... .......... .......... 71%  171M 0s
  1600K .......... .......... .......... .......... .......... 73%  234M 0s
  1650K .......... .......... .......... .......... .......... 76%  257M 0s
  1700K .......... .......... .......... .......... .......... 78%  218M 0s
  1750K .......... .......... .......... .......... .......... 80%  201M 0s
  1800K .......... .......... .......... .......... .......... 82%  228M 0s
  1850K .......... .......... .......... .......... .......... 85%  221M 0s
  1900K .......... .......... .......... .......... .......... 87%  238M 0s
  1950K .......... .......... .......... .......... .......... 89%  180M 0s
  2000K .......... .......... .......... .......... .......... 91%  220M 0s
  2050K .......... .......... .......... .......... .......... 94%  222M 0s
  2100K .......... .......... .......... .......... .......... 96%  241M 0s
  2150K .......... .......... .......... .......... .......... 98%  190M 0s
  2200K .......... .......... .......... ...                  100%  227M=0.2s

2021-11-19 23:01:21 (11.6 MB/s) - ‘/usr/local/bin/composer’ saved [2287395/2287395]

Composer install successfully.
Install ZendGuardLoader for PHP 8...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat ‘/root/mysoft/lnmp1.8/src/php-8.0.13/sapi/fpm/init.d.php-fpm’: No such file or directory
chmod: cannot access ‘/etc/init.d/php-fpm’: No such file or directory
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Starting LNMP...
Starting nginx...  done
Starting MySQL. SUCCESS!
/bin/lnmp: line 30: /etc/init.d/php-fpm: No such file or directory
======== upgrade php failed ======
upgrade php log: /root/upgrade_lnmp_php.log
You upload upgrade_lnmp_php.log to LNMP Forum for help.

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


按你提供的这份日志看php之前版本是不显示的php文件也提示不存在
再就是php-8.0.13源码解压后里面./configure 不存在,说明lnmp安装包 src目录下的 php-8.0.13.tar.bz2 文件是有问题的,建议你删除一下该文件,重新从php官网下载验证一下文件sha256是否正确
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-6 07:13 , Processed in 0.025113 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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