Home  >  Article  >  Operation and Maintenance  >  How to solve the problem that Linux does not have a php.ini file

How to solve the problem that Linux does not have a php.ini file

藏色散人
藏色散人Original
2020-10-20 09:09:013062browse

The solution to the problem that Linux does not have a php.ini file: First, copy php.ini from the source package; then run the phpinfo command and find the configuration file path specified by PHP; finally, put the configuration file in the specified path. .

How to solve the problem that Linux does not have a php.ini file

Recommended: "PHP Video Tutorial"

The php configuration file php.ini cannot be found in php under Linux Solution

Compiling and installing PHP by yourself often encounters this problem and cannot find php.ini.

You can solve it as follows:

First of all, if your php is compiled and installed, then there is no php.ini by default. You must copy it in the source code package yourself. .

Run the phpinfo() command to see the configuration file path specified by php. Just put the configuration file in this path.

The above is the detailed content of How to solve the problem that Linux does not have a php.ini file. 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