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

How to verify the installation after installing php in yum?

王林
王林forward
2019-09-11 11:45:523737browse

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

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

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete
Previous article:What is rm -rf/*?Next article:What is rm -rf/*?