1.4升级php问题
Current PHP Version:7.0.17You can get version number from http://www.php.net/
Please enter a PHP Version you want:
[0;32mPress any key to start...or Press Ctrl+c to cancel[0m
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)
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,4123.68MB/s
70% [==========================> ] 10,764,2923.65MB/s
74% [============================> ] 11,454,8723.63MB/seta 1s
................................
Console_Getopt - installed: 1.4.1
Structures_Graph- installed: 1.1.1
XML_Util - installed: 1.4.2
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分钟。。。 国内连接composer网站可能会比较慢,可以直接编辑 upgrade_php.sh 将对应版本里面的 Install_Composer删掉
回复 2# 的帖子
恩,暂时这样处理了,改到本地吧,这个问题看起来反馈很多。回复 3# 的帖子
下次1.4更新将加上有国内镜像的composer
页:
[1]