Home >Backend Development >PHP Tutorial >linux - rpm -qa php Why is there nothing?
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 picture
Why is this?
How to check whether php is installed?
Thank you
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 picture
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
.