Home >Backend Development >PHP Problem >Where is the default installation path of php under linux?
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".
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!