The directory where yum installs php is under /etc/, or under /usr/local/lib. If you use the rpm package to install, the PHP configuration file is in /etc/php.ini; if you use the source code to install, the PHP configuration file is in /usr/local/lib/php.ini.
Using different installation methods, the installation path is different, as follows:
(Recommended video tutorial: java video tutorial)
If you use the RPM package to install, the installation path should be in the /etc/ directory
php configuration file: /etc/php.ini
If you use the source Code installation is generally installed in the /usr/local/lib directory by default
php configuration file: /usr/local/lib/php.ini
or
/usr /local/php/etc/php.ini
Related recommendations: php training
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!