Home > Operation and Maintenance > Linux Operation and Maintenance > How to verify the installation after installing php in yum?

How to verify the installation after installing php in yum?

王林
Release: 2019-09-11 11:45:52
forward
3760 people have browsed it

How to verify the installation after installing php in yum?

How to verify whether yum installed php successfully?

Method 1: Use the php -v command in the terminal to check the current php version. If php is not installed, you will generally be prompted that there is no php command. For example, you can execute the following command:

rpm -qa | grep php
Copy after login

As shown in the figure below, it means that php is installed. How to verify the installation after installing php in yum?

Method 3

: You can use the list parameter of the pear command to view the installed PHP support. pear is a PHP extension and application library ("PHP Extension and Application Repository"), note that it is not a pear, although it has the same pronunciation as the fruit. After installing php, some of pear's libraries will be automatically installed by default, so you can use the pear command to determine whether to install php. Execute the following command:

pear list
Copy after login

As shown in the figure below, it means it is installed. php. How to verify the installation after installing php in yum?

Finish!

If you want to learn more related content, please visit the php Chinese website:

linux video tutorial

The above is the detailed content of How to verify the installation after installing php in yum?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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