Home > Operation and Maintenance > Linux Operation and Maintenance > Where is the php.ini file in linux

Where is the php.ini file in linux

Release: 2019-12-30 17:25:11
Original
5225 people have browsed it

Where is the php.ini file in linux

#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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template