Where is the CentOS php installation directory?

angryTom
Release: 2020-03-20 14:04:35
Original
6729 people have browsed it

Where is the CentOS php installation directory?

Where is the CentOS php installation directory?

The server has PHP installed, but I don’t know which directory it is installed in. You can query it in the following way .

1. Use the command whereis php, the display is as follows:

php: /usr/bin/php /etc/php.ini /etc/php.d /usr/include/php /usr/share/php /usr/share/man/man1/php.1.gz
Copy after login

where:

/usr/bin/php is the path to the executable file;

/etc/php.ini is the PHP configuration file path;

(Free learning video tutorial sharing: php video tutorial)

/etc/ php.d is the path to other PHP related configuration files;

/usr/include/php is the path to the PHP extension file;

/usr/share/php is the placement share The file path;

/usr/share/man/man1/php.1.gz is PHP related information.

2. Use the find command to find the PHP installation directory

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 Where is the CentOS php installation directory?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!