Home  >  Article  >  Backend Development  >  Where is the directory where yum installs php?

Where is the directory where yum installs php?

王林
王林Original
2020-11-04 11:01:512797browse

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.

Where is the directory where yum installs php?

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!

Statement:
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