VPS侦探论坛

 找回密码
 注册
查看: 1390|回复: 5

lnmp1.6 升级php7.4.33 失败

[复制链接]
发表于 2023-4-7 11:29:04 | 显示全部楼层 |阅读模式

服务器版本 centos7.6

lnmp 1.6  php版本 7.3.28
想升级php版本到7.4.33

没报错,但是/usr/local/目录里没有 php目录  只有一个oldphp/目录
/etc/init.d/目录里也没用 php-fpm文件



+-----------------------------------------------------------------------+
|            Upgrade script for LNMP V1.6, Written by Licess            |
+-----------------------------------------------------------------------+
|     A tool to upgrade Nginx,MySQL/Mariadb,PHP for LNMP/LNMPA/LAMP     |
+-----------------------------------------------------------------------+
|           For more information please visit https://lnmp.org          |
+-----------------------------------------------------------------------+
include/main.sh: line 643: /usr/local/php/bin/php-config: No such file or directory
include/main.sh: line 644: /usr/local/php/bin/php-config: No such file or directory
Current PHP Version:
You can get version number from http://www.php.net/
Please enter a PHP Version you want: 7.4.32

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

Notice: php-7.4.32.tar.bz2 not found!!!download now...
--2023-04-07 11:04:33--  http://php.vpser.net/php-7.4.32.tar.bz2
Resolving php.vpser.net (php.vpser.net)... 61.139.65.253, 240e:974:eb00:201::a2
Connecting to php.vpser.net (php.vpser.net)|61.139.65.253|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13026979 (12M) [application/x-bzip2]  
Saving to: ‘php-7.4.32.tar.bz2’

100%[======================================>] 13,026,979  3.84MB/s   in 3.2s   

2023-04-07 11:04:36 (3.84 MB/s) - ‘php-7.4.32.tar.bz2’ saved [13026979/13026979]

Download php-7.4.32.tar.bz2 successfully!
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx...  done
Shutting down MySQL.. SUCCESS!
/bin/lnmp: line 41: /etc/init.d/php-fpm: No such file or directory
mv: cannot stat ‘/usr/local/php’: No such file or directory
mv: cannot stat ‘/etc/init.d/php-fpm’: No such file or directory
Installing Dependent for PHP...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package c-ares-devel-1.10.0-3.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package libicu-devel-50.2-4.el7_7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package libxslt-1.1.28-6.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package libxslt-devel-1.1.28-6.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package xz-5.2.2-2.el7_9.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package expat-devel-2.1.0-15.el7_9.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package libzip-devel-0.10.1-8.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* centos-sclo-rh: mirrors.aliyun.com
* centos-sclo-sclo: mirrors.aliyun.com
Package bzip2-devel-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
[root@iZ94pg3iug6Z lnmp1.6]# lnmp start
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Starting LNMP...
Starting nginx...  done
Starting MySQL. SUCCESS!
/usr/bin/lnmp: line 27: /etc/init.d/php-fpm: No such file or directory

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-4-7 11:34:27 | 显示全部楼层


[root@iZ94pg3iug6Z lnmp1.6]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G   28K  1.9G   1% /dev/shm
tmpfs           1.9G  876K  1.9G   1% /run
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/vda1        40G   36G  2.3G  95% /
/dev/vdb1       296G   53G  228G  19% /home
tmpfs           379M     0  379M   0% /run/user/0
/dev/loop1      117M  117M     0 100% /var/lib/snapd/snap/core/14784  
/dev/loop5       64M   64M     0 100% /var/lib/snapd/snap/core20/1828
/dev/loop0       44M   44M     0 100% /var/lib/snapd/snap/certbot/2836
/dev/loop3       64M   64M     0 100% /var/lib/snapd/snap/core20/1852
/dev/loop6      117M  117M     0 100% /var/lib/snapd/snap/core/14946  
/dev/loop4       45M   45M     0 100% /var/lib/snapd/snap/certbot/2913
[root@iZ94pg3iug6Z lnmp1.6]#


有可能是硬盘不够么。,还有2.3G 空间
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-4-7 14:31:14 | 显示全部楼层

V1.7正式版更新记录

增加PHP 7.4支持;
增加MariaDB 10.4支持;
增加systemd service脚本;
增加phpmyadmin 5.0;
增加多PHP版本升级工具 ./upgrade.sh mphp,只支持7.2.x-7.2.x类似小版本升级,大版本直接新装即可;
移除MariaDB 10.0;
优化lnmp管理脚本;
优化数据库root密码重置工具;
优化系统版本获取脚本;
优化redis安装脚本;
优化fail2ban安装脚本;
优化nginx安装、升级脚本;
完善CentOS8、Ubuntu20、Deepin20、Fedora等新版本的支持;
完善MySQL升级时增加旧版本下载镜像;
调整php7 memcached使用稳定版;
修复lamp模式下ssl chain添加的bug;
更新诸多软件版本;
其他一些功能优化及调整......
......更多更新信息请访问lnmp官网更新记录查看
LNMP状态管理:lnmp {start|stop|reload|restart|kill|status}
LNMP各个程序的状态管理:lnmp {nginx|mysql|mariadb|php-fpm|pureftpd} {start|stop|reload|restart|kill|status}
虚拟主机管理:lnmp vhost {add|list|del}
数据库管理:lnmp database {add|list|edit|del}
FTP用户管理:lnmp ftp {add|list|edit|del|show}
已存在虚拟主机添加SSL:lnmp ssl add
通过DNS API方式生成证书并创建虚拟主机:lnmp dns {cx|dp|ali|...}
只通过DNS API方式生成SSL证书:lnmp onlyssl {cx|dp|ali|...}

关于升级到当前版本
目前1.6版本与1.7版本编译参数、管理脚本方面相差很小。如需升级一般只需要在lnmp安装包目录下运行 ./upgrade1.x-1.7.sh 升级一下管理脚本;如果想使用PHP 7.4的话,需要下载lnmp 1.7,使用升级脚本升级PHP。

----------------------------
我看了一下lnmp1.7的介绍说明。。   最后那句话  是1.6版本不支持php7.4么。  需要先升级lnmp版本 之后 才能升级php7.4??????
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-4-7 17:16:57 | 显示全部楼层



lnmp 1.6发布时php 7.3才发布,肯定是不支持php 7.4的,至少要lnmp 1.7或更高版本
建议下载lnmp 1.9进行安装就可以了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-4-11 17:16:07 | 显示全部楼层

licess 发表于 2023-4-7 17:16
lnmp 1.6发布时php 7.3才发布,肯定是不支持php 7.4的,至少要lnmp 1.7或更高版本
建议下载lnmp 1.9进行安 ...

是的,我升级到1.7 之后  完美升级安装php7.4了,  只不过之前装的php扩展 全没了,  要全部重新安装

军哥运维代购:http://shop63846532.taobao.com/

发表于 2023-4-12 08:56:16 | 显示全部楼层

xty 发表于 2023-4-11 17:16
是的,我升级到1.7 之后  完美升级安装php7.4了,  只不过之前装的php扩展 全没了,  要全部重新安装 ...

只要是版本变动,php扩展都要重新安装
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-23 18:13 , Processed in 0.027264 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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