1、可以通过安装包的查找进行相应的搜索
whereis php.ini
正常情况下,其位于 /etc/php.ini
2、命令搜索其configuration位置
php -i |grep "Loaded Configuration File"