Home >Backend Development >PHP Tutorial >linux - rpm -qa php Why is there nothing?

linux - rpm -qa php Why is there nothing?

WBOY
WBOYOriginal
2016-07-06 13:51:391722browse

How to check whether php is installed in centos?
I used the command rpm -qa | grep php but nothing happened and it jumped directly to the next line
As shown in the picturelinux - rpm -qa php Why is there nothing?

Why is this?
How to check whether php is installed?
Thank you

Reply content:

How to check whether php is installed in centos?
I used the command rpm -qa | grep php but nothing happened and it jumped directly to the next line
As shown in the picturelinux - rpm -qa php Why is there nothing?

Why is this?
How to check whether php is installed?
Thank you

The absence of

means that php was not installed through yum or rpm. If the php command is not found, it means that php is not under the system's default execution project. At this time, php is often Installed under /usr/local/, please check this directory. Or just use find to search for php.

rpm -qa | grep php
whereis php

rpm -qa|grep php maybe the name is php-x64 or something,

Run this command firstyum update.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn