How to check whether php is installed on CentOS

angryTom
Release: 2020-03-18 17:42:58
Original
5112 people have browsed it

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
Copy after login

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

find / -name "php"
Copy after login

This article comes from the PHP Chinese website, CentOS usage tutorial column, 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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template