yum list installed *php* 在 Centos 6 上没有显示任何 php 包但是 php -v 显示 php 安装版本

yum list installed *php* on Centos 6 is not showing any php packages but php -v shows php installed version

我想在 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

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