【问题标题】:yum list installed *php* on Centos 6 is not showing any php packages but php -v shows php installed versionyum list installed *php* on Centos 6 不显示任何 php 包,但 php -v 显示 php 安装版本
【发布时间】:2018-03-15 17:15:17
【问题描述】:

我想在 centos 6 上升级我的 php。

php 已安装在我的系统上,但未显示在 yum 软件包列表中 这些是命令和结果

php -v

结果是

Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies 

当我输入时

yum list installed *php*

结果是

Loaded plugins: fastestmirror, presto, refresh-packagekit, replace
Loading mirror speeds from cached hostfile
 * epel: mirror.freethought-internet.co.uk
 * ius: mirrors.ircam.fr
 * webtatic: uk.repo.webtatic.com
Error: No matching Packages to list

我还从 /etc/yum.conf 的排除行中删除了 php

【问题讨论】:

  • 请提供rpm -qa |grep php的输出
  • 结果什么都没有
  • 命令“rpm -qa |grep php”不返回任何内容
  • 那么看起来你没有安装 RPM - 你想要什么版本,我可以告诉你如何安装/升级。哪个特定版本的 CentOS uname -a 应该提供该信息。
  • CentOS 的版本是 6.9,结果是 "rpm -?"是关于这个命令的一些帮助。

标签: php linux centos yum


【解决方案1】:

我终于发现在我的服务器中 PHP 是一个嵌入到 Directadmin 面板的模块。所以我用这个链接来更新我的 php How to upgrade (or install) from PHP v.5.4.x to PHP 7.x (directadmin)

【讨论】:

    猜你喜欢
    • 2016-11-10
    • 2020-03-11
    • 2019-02-08
    • 1970-01-01
    • 1970-01-01
    • 2018-02-05
    • 2011-01-08
    • 1970-01-01
    • 2015-11-15
    相关资源
    最近更新 更多