VPS侦探论坛

 找回密码
 注册
查看: 2995|回复: 3

PHP,升级失败,麻烦看看,谢谢

[复制链接]
发表于 2020-3-9 17:52:54 | 显示全部楼层 |阅读模式

日志:Current PHP Version:5.6.40
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-7.0.30.tar.bz2 [found]
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx... nginx is not running.
ERROR! MySQL server PID file could not be found!
Gracefully shutting down php-fpm warning, no pid file found - php-fpm is not running ?
Installing Dependent for PHP...
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: hk.mirrors.thegigabit.com
Package c-ares-devel-1.10.0-3.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: my.mirrors.thegigabit.com
Package libicu-devel-50.2-3.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: hk.mirrors.thegigabit.com
Package libxslt-1.1.28-5.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: my.mirrors.thegigabit.com
Package libxslt-devel-1.1.28-5.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: my.mirrors.thegigabit.com
Package xz-5.2.2-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: my.mirrors.thegigabit.com
Package expat-devel-2.1.0-10.el7_3.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: my.mirrors.thegigabit.com
Package libzip-devel-0.10.1-8.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: my.mirrors.thegigabit.com
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* elrepo: mirror-hk.koddos.net
* epel-debuginfo: my.mirrors.thegigabit.com
Package bzip2-devel-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
[+] Installing 7.0.30
Uncompress php-7.0.30.tar.bz2...
cd php-7.0.30...
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/root/lnmp1.6/src/php-7.0.30':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
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
include/php.sh: line 92: php: command not found
curl: (23) Failed writing body (0 != 16110)
Install ZendGuardLoader for PHP 7...
unavailable now.
Creating new php-fpm configure file...
Copy php-fpm init.d file...
cp: cannot stat 鈥?root/lnmp1.6/src/php-7.0.30/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 27: /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
 楼主| 发表于 2020-3-9 17:54:45 | 显示全部楼层


系统是CentOS 7.2 64位,使用的lnmp1.6.再次感谢。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2020-3-9 19:13:29 | 显示全部楼层

参考:https://bbs.vpser.net/thread-18875-1-1.html
不行的话就是你系统问题
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-3-9 19:24:41 | 显示全部楼层



多谢,我试试。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-20 23:28 , Processed in 0.026458 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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