VPS侦探论坛

 找回密码
 注册
搜索
查看: 432|回复: 2

LNMAP php5.5升级到php7.0.27失败

[复制链接]
发表于 2019-1-8 15:50:32 | 显示全部楼层 |阅读模式

Current PHP Version:5.5.38
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

Notice: php-7.0.27.tar.bz2 not found!!!download now...
--2019-01-08 15:29:48--  http://cn2.php.net/distributions/php-7.0.27.tar.bz2
Resolving cn2.php.net... 36.51.255.144
Connecting to cn2.php.net|36.51.255.144|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 14154690 (13M), 6007750 (5.7M) remaining [application/octet-stream]
Saving to: “php-7.0.27.tar.bz2”


57% [++++++++++++++++++++++                 ] 8,146,940   --.-K/s              
57% [++++++++++++++++++++++                 ] 8,164,119   49.5K/s              
57% [++++++++++++++++++++++                 ] 8,180,179   48.1K/s              
57% [++++++++++++++++++++++                 ] 8,196

2019-01-08 15:36:43 (17.0 KB/s) - “php-7.0.27.tar.bz2” saved [14154690/14154690]

Download php-7.0.27.tar.bz2 successfully!
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Stoping LAMP...
stop apache...  done
Shutting down MySQL.... SUCCESS!
[+] Installing 7.0.27
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
Package libicu-devel-4.2.1-14.el6.x86_64 already installed and latest version
Nothing to do
Uncompress php-7.0.27.tar.bz2...

bzip2: Data integrity error when decompressing.

Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
cd php-7.0.27...
include/upgrade_php.sh: line 528: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
Copy new php configure file...
cp: cannot stat `php.ini-production': No such file or directory
Modify php.ini......
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
include/upgrade_php.sh: line 104: pear: command not found
include/upgrade_php.sh: line 105: pecl: command not found
include/php.sh: line 29: php: command not found
curl: (23) Failed writing body (0 != 16133)
Install ZendGuardLoader for PHP 7...
unavailable now.
Write ZendGuardLoader to php.ini...
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Starting LAMP...
start apache...  done
Starting MySQL... SUCCESS!
======== upgrade php failed ======
upgrade php log: /root/upgrade_a_php.log
You upload upgrade_a_php.log to LNMP Forum for help.


复制的错误信息~求大神解答下!!!用的thinkphp3.2搭建的网站,现在一刷新就下载index.php文件~该怎么办啊~
全部错误日志:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-1-8 16:39:36 | 显示全部楼层



用的阿里云

CentOS  6.8 64位安装的lnmpa

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

发表于 2019-1-8 16:44:17 | 显示全部楼层

php源码包是不完整的,删除lnmp安装包src目录下的 php-7.0.27.tar.bz2 ,然后重新安装
php升级失败了,你访问php文件会提示502错误,出现php下载是虚拟主机中的php解析部分有可能改过导致的

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2019-6-25 00:50 , Processed in 0.042523 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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