#The default path of the php.ini file in the system is '/etc/php.ini '.
If the 'php.ini' file is not in the '/etc/' directory and you don't know where the file is, you can use the 'find' command to find it:
Linux The find command is used to find files in the specified directory. Any string preceding the parameter will be treated as the name of the directory to be searched. If you use this command without setting any parameters, the find command will search for subdirectories and files in the current directory. And all found subdirectories and files will be displayed.
For example: find / -iname php.ini -type f: This command is to find the file named 'php.ini' in the root directory
-iname: Ignore the size of the file name Write
-type: indicate the type of file, f represents an ordinary file (php.ini is an ordinary file)
Recommended learning: linux tutorial
The above is the detailed content of Where is the php.ini file in linux. For more information, please follow other related articles on the PHP Chinese website!