Home>Article>Operation and Maintenance> How to check whether php is installed on CentOS

How to check whether php is installed on CentOS

angryTom
angryTom Original
2020-03-18 17:42:58 4971browse

How to check whether php is installed on CentOS

How to check whether php is installed in CentOS

1. First log in to the CentOS server, or open a terminal.

How to check whether php is installed on CentOS

2. Enter: php -v and press Enter. (Recommended learning:Linux video tutorial)

How to check whether php is installed on CentOS

2. At this time, the detailed information of the PHP installation will be printed out, so that the PHP installation can be detected. situation.

How to check whether php is installed on CentOS

Other methods:

1. Use rpm to query the PHP package

rpm -qa | grep php

2. If you find the corresponding PHP installation directory, it means it has been installed.

find / -name "php"

This article comes from the PHP Chinese website,CentOS usage tutorialcolumn, please pay attention to this column for more related tutorials!

The above is the detailed content of How to check whether php is installed on CentOS. For more information, please follow other related articles on the PHP Chinese website!

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