【问题标题】:PHP 5.3 to 7.3 upgrade failedPHP 5.3 到 7.3 升级失败
【发布时间】:2021-03-04 12:20:02
【问题描述】:

我正在尝试使用 nginx 1.10.3 升级运行 CentOS 6、PHP 5.3.29(我知道,对吗??)的客户端服务器。 所以我像往常一样安装了所有东西:

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-latest-6.noarch.rpm

以及升级和启用 php 7.3 yum-config-manager --enable remi-php73 的命令 但它只显示:

=============================== repo: remi-php73 ===============================
[remi-php73]
bandwidth = 0
base_persistdir = /var/lib/yum/repos/i386/6
baseurl =
cache = 0
cachedir = /var/cache/yum/i386/6/remi-php73
cost = 1000
enabled = True
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/i386/6/remi-php73/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/i386/6/remi-php73/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
hdrdir = /var/cache/yum/i386/6/remi-php73/headers
http_caching = all
includepkgs =
keepalive = True
mdpolicy = group:primary
mediaid =
metadata_expire = 21600
metalink =
mirrorlist = http://cdn.remirepo.net/enterprise/6/php73/mirror
mirrorlist_expire = 86400
name = Remi's PHP 7.3 RPM repository for Enterprise Linux 6 - i386
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/i386/6/remi-php73
pkgdir = /var/cache/yum/i386/6/remi-php73/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
username =

我搜索了一段时间,最终在这里发现了类似的问题:How to install PHP 7.3 on Linux version 3.10.0 kbuilder.dev.centos.org) (Red Hat 4.8.5-11) 但这不是完全一样的问题。或者是吗? 仅仅是由于mysql和其他依赖关系还是我需要做其他事情? 我也不想破坏这个网站,因为它是一个巨大的项目,每天有近一百万的访问者。 请指出方向或可行的解决方案,不要搞砸。谢谢 当前的 PHP 依赖项:

[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mcrypt
memcache
mhash
mysql
mysqli
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
SQLite
sqlite3
standard
tokenizer
uploadprogress
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

【问题讨论】:

    标签: php nginx centos6


    【解决方案1】:

    yum-config-manager --enable remi-php73 但它只显示:

    没有问题,这是“yum-config-manager”的默认行为(显示 repo 文件的新内容)。

    启用存储库后,您可以运行升级

    yum update
    

    正如Wizard所解释的那样

    警告:CentOS 6 将在月底...在 10 天内达到其生命周期,因此将您的服务器升级到 CentOS 7 或 CentOS 8 非常紧迫。

    【讨论】:

    • 这样做了,但我得到的是:加载的插件:fastestmirror,替换设置更新进程从缓存的主机文件加载镜像速度 * epel:mirror.earthlink.iq * remi:mirror.23media.com * remi-php73: mirror.23media.com * remi-safe: mirror.23media.com * webtatic: us-east.repo.webtatic.com 没有标记为更新的包
    • 没有足够的信息(启用的存储库、已安装的软件包、yum 插件...)完整的 yum 输出可能会有所帮助。
    • 很长的列表,所以我不得不将它们上传到文本文件中。这是我的“yum list installed”输出。 file.io/TkBSaFwTFehq 这是“rpm -qa”文件。 file.io/jdTams41GFw2 这是“yum repolist enabled”:file.io/d1Gx7cbfS5et
    • 根据已安装的 RPM 列表,您运行的是 7.3.24(这已经是最新版本,因此无需更新)
    • 完全正确。但是当我运行 php -v 它仍然在 5.3 上。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-07-23
    • 2015-05-20
    • 2020-04-01
    • 1970-01-01
    • 2010-12-09
    • 2011-10-24
    • 1970-01-01
    相关资源
    最近更新 更多