Home  >  Article  >  Backend Development  >  Where is the default installation path of php under linux?

Where is the default installation path of php under linux?

王林
王林Original
2020-08-01 16:12:145511browse

If you use RPM package to install php under Linux, its default installation path is under "/etc/", and the php configuration file is under "/etc/php.ini". If you use source code to install php, its default installation path is under "/usr/local/lib".

Where is the default installation path of php under linux?

If you use RPM package to install php, the default installation path should be in the /etc/ directory.

(Recommended tutorial: php graphic tutorial)

The path to the PHP configuration file at this time is:

/etc/php.ini

If you use source code to install php , then it is generally installed in the /usr/local/lib directory by default.

(Video tutorial recommendation: php video tutorial)

The path to the PHP configuration file at this time is:

/usr/local/lib/php.ini

or

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

The above is the detailed content of Where is the default installation path of php under linux?. 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