Home > Article > Backend Development > Where is the default installation directory of php?
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.
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!