VPS侦探论坛

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

1.4升级php问题

[复制链接]
发表于 2017-4-13 14:22:07 | 显示全部楼层 |阅读模式

Current PHP Version:7.0.17
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.18.tar.bz2 not found!!!download now...
--2017-04-13 13:46:15--  http://cn2.php.net/distributions/php-7.0.18.tar.bz2
Resolving cn2.php.net (cn2.php.net)... 202.108.35.225, 202.108.35.224
Connecting to cn2.php.net (cn2.php.net)|202.108.35.225|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15328539 (15M) [application/octet-stream]
Saving to: ‘php-7.0.18.tar.bz2’


0% [                                       ] 0           --.-K/s              
8% [==>                                    ] 1,296,192   6.18MB/s            
14% [====>                                  ] 2,281,692   5.32MB/s            
19% [======>                                ] 3,052,572   4.78MB/s            
24% [========>                              ] 3,756,292   4.43MB/s            
29% [==========>                            ] 4,467,312   4.22MB/s            
33% [============>                          ] 5,162,272   4.07MB/s            
38% [=============>                         ] 5,861,612   3.96MB/s            
42% [===============>                       ] 6,558,032   3.88MB/s            
47% [=================>                     ] 7,255,912   3.82MB/s            
51% [===================>                   ] 7,950,872   3.77MB/s            
56% [====================>                  ] 8,642,912   3.73MB/s            
60% [======================>                ] 9,349,552   3.70MB/s            
65% [========================>              ] 10,066,412  3.68MB/s            
70% [==========================>            ] 10,764,292  3.65MB/s            
74% [============================>          ] 11,454,872  3.63MB/s  eta 1s     

................................

[PEAR] Console_Getopt - installed: 1.4.1
[PEAR] Structures_Graph- installed: 1.1.1
[PEAR] XML_Util       - installed: 1.4.2
[PEAR] PEAR           - installed: 1.10.3
Warning! a PEAR user config file already exists from a previous PEAR installation at '/root/.pearrc'. You may probably want to remove it.
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
/root/lnmp1.4/src/php-7.0.18/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin
ln -s -f phar.phar /usr/local/php/bin/phar
Installing PDO headers:           /usr/local/php/include/php/ext/pdo/
Copy new php configure file...
Modify php.ini......
config-set succeeded
config-set succeeded
curl: (28) Operation timed out after 60001 milliseconds with 179973 out of 305728 bytes received
PHP Parse error:  syntax error, unexpected end of file, expecting variable (T_VARIABLE) or heredoc end (T_END_HEREDOC) or ${ (T_DOLLAR_OPEN_CURLY_BRACES) or {$ (T_CURLY_OPEN) in - on line 3521
--2017-04-13 14:04:10--  https://getcomposer.org/installer
Resolving getcomposer.org (getcomposer.org)... 87.98.253.108, 2001:41d0:a:7b19::2
Connecting to getcomposer.org (getcomposer.org)|87.98.253.108|:443... connected.
HTTP request sent, awaiting response...


卡这了一直没动,我看代码好像有超时的,但也没用,等了20分钟。。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-4-13 19:29:39 | 显示全部楼层


国内连接composer网站可能会比较慢,可以直接编辑 upgrade_php.sh 将对应版本里面的 Install_Composer  删掉
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-4-19 10:07:53 | 显示全部楼层

回复 2# 的帖子


恩,暂时这样处理了,改到本地吧,这个问题看起来反馈很多。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-4-19 10:43:26 | 显示全部楼层

回复 3# 的帖子




下次1.4更新将加上有国内镜像的composer
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-27 07:26 , Processed in 0.027543 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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