DDgo 发表于 2021-5-8 08:36:18

Centos7, LNMP1.7升级PHP7.4.19提示输入错误版本号

我看PHP官网最新是7.4.19,而且我也试了7.4.1-7.4.15,都提示这个错误,求解答。。怎么解决。。

# ./upgrade.sh
+-----------------------------------------------------------------------+
|            Upgrade script for LNMP V1.7, Written by Licess            |
+-----------------------------------------------------------------------+
|   A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP   |
+-----------------------------------------------------------------------+
|         For more information please visit https://lnmp.org          |
+-----------------------------------------------------------------------+
1: Upgrade Nginx
2: Upgrade MySQL
3: Upgrade MariaDB
4: Upgrade PHP for LNMP
5: Upgrade PHP for LNMPA or LAMP
6: Upgrade MySQL to MariaDB
7: Upgrade phpMyAdmin
8: Upgrade Multiple PHP
exit: Exit current script
###################################################
Enter your choice (1, 2, 3, 4, 5, 6, 7 or exit): 5
Current PHP Version:7.3.11
You can get version number from http://www.php.net/
Please enter a PHP Version you want: 7.4.19

Press any key to start...or Press Ctrl+c to cancel

Notice: php-7.4.19.tar.bz2 not found!!!download now...
--2021-05-08 08:35:05--https://www.php.net/distributions/php-7.4.19.tar.bz2
Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad
Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected.
HTTP request sent, awaiting response... 503 Service Temporarily Unavailable
2021-05-08 08:35:06 ERROR 503: Service Temporarily Unavailable.

--2021-05-08 08:35:06--http://museum.php.net/php5/php-7.4.19.tar.bz2
Resolving museum.php.net (museum.php.net)... 185.85.0.29, 2a02:cb40:200::1ad
Connecting to museum.php.net (museum.php.net)|185.85.0.29|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://museum.php.net/php5/php-7.4.19.tar.bz2
--2021-05-08 08:35:07--https://museum.php.net/php5/php-7.4.19.tar.bz2
Connecting to museum.php.net (museum.php.net)|185.85.0.29|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-05-08 08:35:08 ERROR 404: Not Found.

You enter PHP Version was:7.4.19
Error! You entered a wrong version number, please check!


licess 发表于 2021-5-8 17:45:16

按http响应代码看是503,应该是php官网的下载节点出现了问题
目前测试看是正常的

DDgo 发表于 2021-5-8 17:52:11

licess 发表于 2021-5-8 17:45
按http响应代码看是504,应该是php官网的下载节点出现了问题
目前测试看是正常的 ...

还是不行{:1_36:}。直接WINDOWS浏览器打开 https://www.php.net/distributions/php-7.4.19.tar.bz2这个链接是都可以下载,但是..升级就显示出错..

DDgo 发表于 2021-5-8 18:14:25

如果是手动上传压缩包,将安装包放到LNMP目录安装,放到哪个目录去执行什么命令可以安装呢?

licess 发表于 2021-5-9 10:27:57

DDgo 发表于 2021-5-8 18:14
如果是手动上传压缩包,将安装包放到LNMP目录安装,放到哪个目录去执行什么命令可以安装呢? ...

不清楚什么情况,我们这边测试每问题
如果是国内服务器的话,正常是会从http://php.vpser.net 国内节点下载的,除非ip库没有匹配上,也可以通过 http://php.vpser.net/php-版本号.tar.bz2 仅能国内
下载到 lnmp安装包 src 目录下,再进行安装

DDgo 发表于 2021-5-9 16:04:14

licess 发表于 2021-5-9 10:27
不清楚什么情况,我们这边测试每问题
如果是国内服务器的话,正常是会从http://php.vpser.net 国内节点下 ...

感谢军哥回答!
已经手动上传到SRC目录下进行升级安装。
页: [1]
查看完整版本: Centos7, LNMP1.7升级PHP7.4.19提示输入错误版本号