Home > Article > Operation and Maintenance > 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.
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.
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!