xty 发表于 2023-4-7 11:29:04

lnmp1.6 升级php7.4.33 失败

服务器版本 centos7.6

lnmp 1.6php版本 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)
Saving to: ‘php-7.4.32.tar.bz2’

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

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

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
# 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

xty 发表于 2023-4-7 11:34:27

# df -h
Filesystem      SizeUsed Avail Use% Mounted on
devtmpfs      1.9G   01.9G   0% /dev
tmpfs         1.9G   28K1.9G   1% /dev/shm
tmpfs         1.9G876K1.9G   1% /run
tmpfs         1.9G   01.9G   0% /sys/fs/cgroup
/dev/vda1      40G   36G2.3G95% /
/dev/vdb1       296G   53G228G19% /home
tmpfs         379M   0379M   0% /run/user/0
/dev/loop1      117M117M   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      117M117M   0 100% /var/lib/snapd/snap/core/14946
/dev/loop4       45M   45M   0 100% /var/lib/snapd/snap/certbot/2913
#


有可能是硬盘不够么。,还有2.3G 空间

xty 发表于 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??????

licess 发表于 2023-4-7 17:16:57

lnmp 1.6发布时php 7.3才发布,肯定是不支持php 7.4的,至少要lnmp 1.7或更高版本
建议下载lnmp 1.9进行安装就可以了

xty 发表于 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扩展 全没了,要全部重新安装

licess 发表于 2023-4-12 08:56:16

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

只要是版本变动,php扩展都要重新安装
页: [1]
查看完整版本: lnmp1.6 升级php7.4.33 失败