如何找到命令行使用的php.ini文件? [英] How to find the php.ini file used by the command line?

查看:288
本文介绍了如何找到命令行使用的php.ini文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在EasyPhp环境中启用pdo_mysql,所以我转到php.ini文件并取消注释以下行:

I need to enable pdo_mysql in my EasyPhp environment, so I went to php.ini file and uncommented the following line:

extension=php_pdo_mysql.dll

不幸的是,我仍然遇到同样的问题. 我正在使用CLI,所以我想我需要找到CLI使用的php.ini文件.我怎么找到它?

Unfortunately I still have the same problem. I'm using the CLI so I suppose I need to locate the php.ini file used by the CLI. How can I find it?

推荐答案

只需运行php --ini并在输出中查找Loaded Configuration File,以找到CLI使用的php.ini的位置

Just run php --ini and look for Loaded Configuration File in output for the location of php.ini used by your CLI

这篇关于如何找到命令行使用的php.ini文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆