Home >Backend Development >PHP Problem >What is the path for yum to install php?

What is the path for yum to install php?

藏色散人
藏色散人Original
2020-07-08 09:07:482737browse

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

What is the path for yum to install php?

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!

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