The yum installation php directory is located in the "/etc/" directory or the "/usr/local/lib" directory, and the corresponding php configuration files are located in "/etc/php.ini" or "/usr/" local/lib/php.ini".
The default installation path of PHP after yum installation under Linux
PHP:
If you use RPM package installation, the installation path should be in the /etc/ directory.
php configuration file:/etc/php.ini
If you use source code installation, it is usually installed in /usr by default.
php configuration file in the /local/lib directory: /usr/local/lib/php.ini
or /usr/local/php/etc/php.ini
Recommendation: "PHP Tutorial"
The above is the detailed content of Where is the directory where yum installs php?. For more information, please follow other related articles on the PHP Chinese website!