Usually php default configuration location
/usr/local/php/etc/php.ini
1. Find The specific method of linux php configuration file is to first open the terminal and enter the find command to display the path of the php configuration file:
find / -name php.ini
2. Then you can also directly use the built-in command of PHP to search. Using the following command, you can clearly see the configuration file currently used by PHP:
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of Where is the php configuration file in linux. For more information, please follow other related articles on the PHP Chinese website!