Home>Article>Operation and Maintenance> 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.
2. Enter: php -v and press Enter. (Recommended learning:Linux video tutorial)
2. At this time, the detailed information of the PHP installation will be printed out, so that the PHP installation can be detected. situation.
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!