Maison >développement back-end >tutoriel php >linux - centos中查询php配置文件

linux - centos中查询php配置文件

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBoriginal
2016-09-19 09:16:261541parcourir

在服务器中安装了php和apache,但是由于apache不解析PHP所以需要查找PHP的配置文件去配置,然而我使用了find / -name 'php.ini' 无法找到PHP配置文件,但是用php -version 可以查看到PHP的版本,求高手解答.使用了php --ini 找到路径,却无法找到那个配置文件.
附上截图.
linux - centos中查询php配置文件

linux - centos中查询php配置文件

linux - centos中查询php配置文件

linux - centos中查询php配置文件

回复内容:

在服务器中安装了php和apache,但是由于apache不解析PHP所以需要查找PHP的配置文件去配置,然而我使用了find / -name 'php.ini' 无法找到PHP配置文件,但是用php -version 可以查看到PHP的版本,求高手解答.使用了php --ini 找到路径,却无法找到那个配置文件.
附上截图.
linux - centos中查询php配置文件

linux - centos中查询php配置文件

linux - centos中查询php配置文件

linux - centos中查询php配置文件

你搜索find / -name php.ini-development或者find / -name php.ini-production试试看呢

命令php --ini
可以找到配置在哪

php -i | grep "Configuration File"

linux - centos中查询php配置文件

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Article précédent:数据一致性问题Article suivant:php给li标签添加不同的class