Home > Article > Operation and Maintenance > How to solve the problem that Linux does not have a php.ini file
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. .
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!