Home >Backend Development >PHP Problem >What is the path for yum to install php?
The path where yum installs php is in the "/usr/local/lib" directory. You can find the path where yum installs php by executing the command "php -i | grep "Loaded Configuration File"".
The default installation path of php after yum installation under linux
PHP:
If using RPM Package installation, the installation path should be in the /etc/ directory
php configuration file:/etc/php.ini
If you use source code installation, it is generally installed in /usr/local/ by default
php configuration file in the lib directory: /usr/local/lib/php.ini
or /usr/local/php/etc/php.ini
Related:
Find the path where yum installs php:
Execute the following command
php -i | grep "Loaded Configuration File"
For more related knowledge, please visit PHP Chinese website!
The above is the detailed content of What is the path for yum to install php?. For more information, please follow other related articles on the PHP Chinese website!