一、检查当前系统是否已经安装PHP
# rpm -qa php1
二、查看yum是否有可安装的PHP软件
# yum list | grep php1
[root@localhost ~]# yum list | grep phpgraphviz-php.x86_64 2.30.1-19.el7 base php.x86_64 5.4.16-43.el7_4 updates php-bcmath.x86_64 5.4.16-43.el7_4 updates php-cli.x86_64 5.4.16-43.el7_4 updates php-common.x86_64 5.4.16-43.el7_4 updates php-dba.x86_64 5.4.16-43.el7_4 updates php-devel.x86_64 5.4.16-43.el7_4 updates php-embedded.x86_64 5.4.16-43.el7_4 updates php-enchant.x86_64 5.4.16-43.el7_4 updates php-fpm.x86_64 5.4.16-43.el7_4 updates php-gd.x86_64 5.4.16-43.el7_4 updates php-intl.x86_64 5.4.16-43.el7_4 updates php-ldap.x86_64 5.4.16-43.el7_4 updates php-mbstring.x86_64 5.4.16-43.el7_4 updates php-mysql.x86_64 5.4.16-43.el7_4 updates php-mysqlnd.x86_64 5.4.16-43.el7_4 updates php-odbc.x86_64 5.4.16-43.el7_4 updates php-pdo.x86_64