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

Where is the installation location of php under linux?

王林
王林Original
2020-07-21 13:47:243589browse

The installation location of php under Linux is in the [/etc/] directory. At this time, php is installed using the RPM package method. If PHP is installed using source code, it is generally installed in the [/usr/local/lib] directory by default.

Where is the installation location of php under linux?

The installation path of php is divided into the following two situations:

(recommended tutorial: php tutorial)

1. If php is installed using RPM package, then its installation path should be in the /etc/ directory.

At this time, the configuration file path of php is /etc/php.ini.

2. If php is installed using source code, it is generally installed in the /usr/local/lib directory by default.

At this time, the configuration file path of php is: /usr/local/lib/php.ini or /usr/local/php/etc/php.ini.

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