当前位置:网站首页>统信UOS PHP7.2.3升级至PHP7.2.24
统信UOS PHP7.2.3升级至PHP7.2.24
2022-04-23 14:09:00 【Nightwish5】
文章背景
UOS(arm64)最初安装的PHP版本是php7.2.3 ,由于漏扫,将php版本先升级到php7.2.24
一、具体操作
1.1 下载PHP7.2.24的deb安装包
PHP7.2.24的deb安装包来源:https://launchpad.net/ubuntu/+source/php7.2
将里面的 arm64.deb都下载到本地。
php7.2.24-deb# ls
libapache2-mod-php7.2_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-gd_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-phpdbg_7.2.24-0ubuntu0.18.04.10_arm64.deb
libphp7.2-embed_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-gmp_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-pspell_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-bcmath_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-imap_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-readline_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-bz2_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-interbase_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-recode_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-cgi_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-intl_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-snmp_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-cli_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-json_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-soap_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-common_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-ldap_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-sqlite3_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-curl_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-mbstring_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-sybase_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-dba_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-mysql_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-tidy_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-dev_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-odbc_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-xml_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-enchant_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-opcache_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-xmlrpc_7.2.24-0ubuntu0.18.04.10_arm64.deb
php7.2-fpm_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-pgsql_7.2.24-0ubuntu0.18.04.10_arm64.deb php7.2-zip_7.2.24-0ubuntu0.18.04.10_arm64.deb
1.2 卸载旧的php7.2.3
#查看已安装的php ,然后复制粘贴卸载即可。 最好执行几次。
apt-cache search php7.2 | awk '{print $1}' | xargs -i echo "apt-get remove --purge {}"
apt-get remove --purge -y php-ds
apt-get remove --purge -y php-ps
apt-get remove --purge -y php-sass
apt-get remove --purge -y php-smbclient
apt-get remove --purge -y php-tideways
apt-get remove --purge -y php-uploadprogress
apt-get remove --purge -y php7.2-bz2
apt-get remove --purge -y php7.2-cli
apt-get remove --purge -y php7.2-common
apt-get remove --purge -y php7.2-curl
apt-get remove --purge -y php7.2-fpm
apt-get remove --purge -y php7.2-gd
apt-get remove --purge -y php7.2-gmp
apt-get remove --purge -y php7.2-json
apt-get remove --purge -y php7.2-ldap
apt-get remove --purge -y php7.2-mbstring
apt-get remove --purge -y php7.2-mysql
apt-get remove --purge -y php7.2-opcache
apt-get remove --purge -y php7.2-pgsql
apt-get remove --purge -y php7.2-readline
apt-get remove --purge -y php7.2-sqlite3
apt-get remove --purge -y php7.2-xml
apt-get remove --purge -y php7.2-zip
1.3 安装php7.2.24
#有的deb可能会安装失败,但不会影响总体
cd /php7.2.24-deb
dpkg -i *.deb
二、升级PHP后,web页面的排错
2.1 需要添加金仓kdb配置
unzip pdo_for_php-7.2.0.zip -d /usr/lib/php/20170718/
echo "extension=pdo_kdb.so" >> /etc/php/7.2/mods-available/pdo.ini
ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.6
ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.6
ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.10
ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.10
#检查是否有pdo_kdb扩展
php -m
/etc/init.d/php-fpm restart
nginx -s reload
2.2 访问页面 502 bad Gateway
根据nginx日志 ,有php-fpm,但没有对应端口。 看样子卸载,安装新PHP后,还要做些操作。
排错巡检:查看nginx 、php 、对应启动的端口。
发现没有9000端口, 他nginx通过9000端口与php页面交互。
2022/02/11 15:38:42 [error] 485#485: *4228 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.2.28, server: 192.168.2.28, request: "GET / HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.2.28"
661 2022/02/11 15:38:43 [error] 485#485: *4231 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.2.28, server: 192.168.2.28, request: "GET / HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.2.28"
662 2022/02/11 15:38:44 [error] 485#485: *4234 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.2.28, server: 192.168.2.28, request: "GET / HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.2.28"
663 2022/02/11 15:38:45 [error] 485#485: *4237 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.2.28, server: 192.168.2.28, request: "GET / HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.2.28"
664 2022/02/11 15:41:06 [error] 485#485: *4239 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: 192.168.2.28, request: "G ET /IT_home/IT_abnormalNotice.php?id=1644303665273225687 HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
处理方法:
参考:http://www.manongjc.com/article/25049.html 《ubuntu php7.2 fpm-php 未监听9000端口问题》
END
版权声明
本文为[Nightwish5]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Nightwish5/article/details/122884406
边栏推荐
- STD:: map and STD:: vector memory free
- 云迁移的六大场景
- Research on recyclerview details - Discussion and repair of recyclerview click dislocation
- HyperBDR云容灾V3.2.1版本发布|支持更多云平台,新增监控告警功能
- 预览CSV文件
- On September 8, the night before going to Songshan Lake
- A table splitting implementation scheme of MySQL and InnoDB, MyISAM and MRG_ Introduction to MyISAM and other engine application scenarios
- Storage path of mod subscribed by starbound Creative Workshop at Star boundary
- HyperBDR云容灾V3.3.0版本发布|容灾功能升级,资源组管理功能优化
- 帆软实现一个单选按钮,可以统一设置其他单选按钮的选择状态
猜你喜欢
win10自带Groove音乐不能播放CUE和APE文件的一种曲线救国办法,自己创建aimppack插件包,AIMP安装DSP插件
krpano全景之vtour文件夹和tour
Three point positioning based on ibeacons (wechat applet)
Detailed tutorial on the use of setinterval timing function of wechat applet
正则表达式
Some experience of using dialogfragment and anti stepping pit experience (getactivity and getdialog are empty, cancelable is invalid, etc.)
使用Executors类快速创建线程池
HyperBDR云容灾V3.2.1版本发布|支持更多云平台,新增监控告警功能
回顾2021:如何帮助客户扫清上云最后一公里的障碍?
MySQL-InnoDB-事务
随机推荐
在MAC上安装mysql
容灾有疑问?点这里
jsp学习1
金融行业云迁移实践 平安金融云整合HyperMotion云迁移解决方案,为金融行业客户提供迁移服务
ActiveMQ Basics
Essential difference between restful WebService and gSOAP webservice
JDBC详解
Switch usage (wechat applet)
Recyclerview advanced use (II) - simple implementation of vertical drag and drop sorting
mysql 5.1升级到5.66
关于训练过程中损失函数出现断崖式增长的问题
JDBC details
Win10 comes with groove music, which can't play cue and ape files. It's a curvilinear way to save the country. It creates its own aimpack plug-in package, and aimp installs DSP plug-in
VMware15Pro在Deepin系统里面挂载真机电脑硬盘
帆软报表设置单元格填报以及根据值的大小进行排名方法
void*是怎样的存在?
贷款市场报价利率(LPR)与贷款基准利率介绍
帆软中需要设置合计值为0时,一整行都不显示的解决办法
VMWare安装64位XP中文教程
dp-能量项链