Home >Operation and Maintenance >CentOS >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
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*
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!