How to find the php.ini file used by the command line?
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
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
You can get a full phpinfo()
using :
php -i
And, in there, there is the php.ini
file used :
$ php -i | grep 'Configuration File'
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
On Windows use find
instead:
php -i|find/i"configuration file"
php --ini
将为您提供关于使用路径和可能的ini文件的所有详细信息
链接地址: http://www.djcxy.com/p/57678.html上一篇: 我在哪里可以找到PHP的php.ini
下一篇: 如何找到命令行使用的php.ini文件?