如何检查,其中Apache是寻找一个php.ini文件? [英] How to check where Apache is looking for a php.ini file?
本文介绍了如何检查,其中Apache是寻找一个php.ini文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有Apache是使用一个我编辑一个不同的php.ini文件的感觉。我使我的php.ini文件的改变,重新启动Apache和更改不会生效。所以,我不知道该怎么办了。
I have a feeling that Apache is using a different php.ini file that the one I am editing. I make a change in my php.ini file, restart Apache, and the change doesn't take affect. So I don't know what to do anymore.
任何想法?
更新:发现它的使用正确的php.ini文件...但我还是不知道该怎么办
Update: Found out it's using the right php.ini file...but I still don't know what to do!
推荐答案
要查找的被PHP运行该文件,创建的phpinfo文件(只< PHP的phpinfo();?>
),并寻找配置文件(php.ini中)路径'指令。
To find the file that's being run by PHP, create a phpinfo file (just <?php phpinfo();?>
) and look for the 'Configuration File (php.ini) Path' directive.
这篇关于如何检查,其中Apache是寻找一个php.ini文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文