Home  >  Article  >  Backend Development  >  Where is the default installation directory of php?

Where is the default installation directory of php?

藏色散人
藏色散人Original
2020-07-08 09:16:226620browse

The default installation directory of php varies according to the installation method. That is, if you use RPM package installation, the installation path should be in the "/etc/" directory. If you use source code installation, it is generally installed by default in " /usr/local/lib" directory.

Where is the default installation directory of php?

php default installation directory

PHP

(1) If you use RPM package to install, The installation path should be in the /etc/ directory

php configuration file: /etc/php.ini

(2) If source code installation is used, it is generally installed by default

php configuration file in the /usr/local/lib directory:

/usr/local/lib/php.ini

or

/usr/local/php/etc/php.ini

For more related knowledge, please visit PHP Chinese website!

The above is the detailed content of Where is the default installation directory of 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