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.
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!